show date format in laravel code example
Example 1: format date laravel timestamp view
date('d-m-Y', strtotime($user->from_date));
/**
or
**/
date_format($user->from_date,'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)) !!}
Example 3: format date laravel timestamp view
date('d-m-Y', strtotime($user->from_date));
Example 4: laravel date format valdiate
'date_format:d/m/Y';