search by from date and to date in laravel 8 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();