1//laravel method 1
2{{ $data->created_at->isoFormat('dddd D') }}
3
4//laravel method 2
5{!! date('d/M/y', strtotime($data->created_at)) !!}
1{{ $post->created_at->diffForHumans() }}
2 /*
3 //Output
4 Arya Stuck 14 minutes ago
5 Post something
6
7 Mizan Khan 23 hours ago
8 Post something
9 */
1{!! htmlspecialchars_decode(date('j<\s\up>S</\s\up> F Y', strtotime('21-05-2020'))) !!}
2