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(
date('Y-m-d H:i:s') returns date of now.
date('Y-m-d H:i:s')
If you want results from start of the day you can replace it with date('Y-m-d').' 00:00:00'.
date('Y-m-d').' 00:00:00'
If you want results from last 24 hours you can replace it with date('Y-m-d H:i:s',time()-86400) (86400 = 24*60*60)
date('Y-m-d H:i:s',time()-86400)