laravel call to a member function diffforhumans 28 29 on string

Solutions on MaxInterview for laravel call to a member function diffforhumans 28 29 on string by the best coders in the world

showing results for - "laravel call to a member function diffforhumans 28 29 on string"
Alyssia
28 Nov 2016
1// Larvel - call diffForHumans() function on string
2$date = $info->created_at;
3{{ \Carbon\Carbon::parse($date)->diffForHumans() }}