How to check user login or not in Laravel?

By Hardik Savani September 5, 2020 Category : Laravel

If you are new and you trying to find how to detect user is login or not in your laravel application. So, it is very easy to check because laravel 5 provide to Auth facade for check user is login or not. Check bellow example:


@if (Auth::check())

{!! print_r("User is login.") !!}


{!! print_r("User is not login.") !!}


We are Recommending you