$user->created_at->diffForHumans ()?
在AppServiceProvider的boot 添加了\Carbon\Carbon::setLocale('zh');
前台模板直接调用{{$user->created_at->diffForHumans()?}}
报错 call to a member function diffForHumans() on string
推荐文章: