laravel blade auth check 1

laravel blade auth check

use Illuminate\Support\Facades\Auth;

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

Here is what the above code is Doing:
1. First, we’re importing the Auth facade.
2. Then, we’re using the Auth facade’s check method to determine if the user is logged in.
3. If they are, we’ll display a message to them.

Similar Posts