Answers for "format date where eloquent"

PHP
0

where date laravel

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

laravel wheredate

$users = DB::table('users')
                ->whereDate('created_at', '2016-12-31')
                ->get();
Posted by: Guest on September-14-2020

Browse Popular Code Answers by Language