How to Check if the User is Logged-in – Laravel 5

Laravel comes with a built-in method called check() method to determine if the current user is already logged into the application. If the user is logged it will return true else it will return false.

Quick Tip: Creating a Select Box Field in Laravel

if (Auth::check())
{
    // The user is logged in...
}

 

0 Comments

Leave a Comment.