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(
For those who only need to compare a date without time, Lavarel provided a handy function whereDate:
User::whereDate('created_at', '>=', date('Y-m-d'));
http://laraveldaily.com/eloquent-date-filtering-wheredate-and-other-methods/