loading...

Discussion on: Laravel — knowing when your users were last online

Collapse
efroim102 profile image
Efroim Rosenberg

You might have a bug in the code seeing as the $user variable is never being set.

You probably meant auth()->user()->last_online_at.

Collapse
mattkingshott profile image
Matt Kingshott 👨🏻‍💻 Author

Well spotted. Fixed. Thanks!