I\'m using Laravel Framework.
I want all of the rows for this day. This is what I tried:
DB::table(\'users\')->where(\'created_at\', \'>=\', date(
I know that topic is old but may someone try to find a solution from search engines.
You can use:
User::whereDate('created_at', '=', Carbon::today()->toDateString());
You can visit this link if you want to know more about date comparison in Laravel using where.
Eloquent date filtering: whereDate() and other methods