According to the manual: http://carbon.nesbot.com/docs/#api-humandiff
to get an ago
When comparing a value in the past to default now
but whatever I do, I cannot get the ago
return $datetime->diffForHumans(Carbon::now())
results to before
, while
return Carbon::now()->diffForHumans($datetime);
results to after
,
but as you can see clearly both of my snippet above compares the past
($datetime) and to default now (Carbon::now()) so I cannot understand why I can't get an ago? Hope somebody can help. I just need to echo ago
. Thanks!