date format with carbon laravel code example
Example 1: carbon date from format
Carbon::createFromFormat('Y-m-d H:i:s', $request->date)->format('d-m-Y')
Example 2: datetime format laravel
//laravel method 1
{{ $data->created_at->isoFormat('dddd D') }}
//laravel method 2
{!! date('d/M/y', strtotime($data->created_at)) !!}