mysql - Get only records created today in laravel - Stack Overflow

PHOTO EMBED

Wed Sep 28 2022 09:54:29 GMT+0000 (UTC)

Saved by @yugan91 #sql

return $model->where('created_at', '>=', date('Y-m-d').' 00:00:00');
content_copyCOPY

https://stackoverflow.com/questions/33247908/get-only-records-created-today-in-laravel