1use Carbon\Carbon;
2$date = Carbon::now();
3//Get date and time
4$date->toDateTimeString();
5//Get date
6$date->toDateString();
1$q->whereDay('created_at', '=', date('d'));
2$q->whereMonth('created_at', '=', date('m'));
3$q->whereYear('created_at', '=', date('Y'));