Answers for "how t get the current data using carbon in laravel"

PHP
1

get current date carbon laravel

use Carbon\Carbon;
$date = Carbon::now();
//Get date and time
$date->toDateTimeString();
//Get date
$date->toDateString();
Posted by: Guest on December-04-2020
0

laravel carbon today date format

$today = Carbon::now()->format('Y-m-d'); //yyyy-mm-dd etc
Posted by: Guest on November-16-2020

Code answers related to "how t get the current data using carbon in laravel"

Browse Popular Code Answers by Language