date time format to times ago 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: format time laravel
{{\Carbon\Carbon::createFromFormat('H:i:s',$time)->format('h:i')}}
{{$item->date_seance->format('d/m/Y') }}
{{date('H:i', strtotime($item->start_time)) }}