laravel filter today records code example
Example 1: where('created_at', '=', date('Y-m-d'));
$q->whereDate('created_at', '=', date('Y-m-d'));
Example 2: where('created_at', '=', date('Y-m-d'));
$q->where('created_at', '>=', date('Y-m-d').' 00:00:00'));
Example 3: where('created_at', '=', date('Y-m-d'));
$q->where(DB::raw("DATE(created_at) = '".date('Y-m-d')."'"));