get current date laravel
snippet in php

get current date laravel

user5701

use Carbon\Carbon;
$date = Carbon::now();

get current date carbon laravel

user9804

use Carbon\Carbon;
$date = Carbon::now();
//Get date and time
$date->toDateTimeString();
//Get date
$date->toDateString();