check if logged laravel
snippet in php

check if logged laravel

user5739

use Illuminate\Support\Facades\Auth;

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