laravel datetime code example
Example 1: datetime format laravel
//laravel method 1
{{ $data->created_at->isoFormat('dddd D') }}
//laravel method 2
{!! date('d/M/y', strtotime($data->created_at)) !!}
Example 2: time() in laravel
use Carbon\Carbon;
$date = Carbon::now();