Answers for "laravel ->where('orders.created_at BETWEEN '2020-09-22' AND '2020-09-23'')"

PHP
1

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

$q->whereDay('created_at', '=', date('d'));
$q->whereMonth('created_at', '=', date('m'));
$q->whereYear('created_at', '=', date('Y'));
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 ->where('orders.created_at BETWEEN '2020-09-22' AND '2020-09-23'')"

Browse Popular Code Answers by Language