Answers for "laravel eloquent where created_at"

PHP
0

where('created_at', '=', date('Y-m-d'));

$q->whereDate('created_at', '=', date('Y-m-d'));
Posted by: Guest on July-11-2020
0

where('created_at', '=', date('Y-m-d'));

$q->where(DB::raw("DATE(created_at) = '".date('Y-m-d')."'"));
Posted by: Guest on July-11-2020

Code answers related to "laravel eloquent where created_at"

Browse Popular Code Answers by Language