Laravel Call To A Member Function DiffForHumans() On String

laravel Call to a member function diffForHumans() on string
// Larvel - call diffForHumans() function on string
$date = $info->created_at;
{{ \Carbon\Carbon::parse($date)->diffForHumans() }}

Leave a Comment