Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel Call to a member function diffForHumans() on string

// Larvel - call diffForHumans() function on string
$date = $info->created_at;
{{ CarbonCarbon::parse($date)->diffForHumans() }}
 
PREVIOUS NEXT
Tagged: #laravel #Call #member #function #string
ADD COMMENT
Topic
Name
5+7 =