[5.6] Add ability to determine if the current user is ALREADY authenticated without triggering side effects by mpyw · Pull Request #24518 · laravel/framework
Auth::check() internally calls Auth::user(). It may trigger side effects.(e.g. accessing database or making an HTTP request for external Web API) Auth::guard()->user is protected. We currently ...