Answers for "get current date for particular column in laravel"

PHP
1

get current date laravel

use Carbon\Carbon;
$date = Carbon::now();
//Get date and time
$date->toDateTimeString();
//Get date
$date->toDateString();
Posted by: Guest on December-04-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

Code answers related to "get current date for particular column in laravel"

Browse Popular Code Answers by Language