Answers for "laravel get day from date eloquent"

PHP
0

where date laravel

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

get data based on date in laravel

PrescriptionTbl::whereDate('created_at', date('Y-m-d'))->get();
Posted by: Guest on September-21-2020

Browse Popular Code Answers by Language