laravel where date code example
Example 1: where date laravel
$q->whereDate('created_at', '=', date('Y-m-d'));
Example 2: get data based on date in laravel
PrescriptionTbl::whereDate('created_at', date('Y-m-d'))->get();
$q->whereDate('created_at', '=', date('Y-m-d'));
PrescriptionTbl::whereDate('created_at', date('Y-m-d'))->get();