laravel Call to a member function diffForHumans() on string
snippet in php

laravel Call to a member function diffForHumans() on string

user3953

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