laravel check auth
snippet in php

laravel authentication

user1446

composer require laravel/ui

php artisan ui vue --auth

laravel check auth

user8315

use Illuminate\Support\Facades\Auth;

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

laravel force login by id

user3012

Auth::login($user);

laravel auth

user8320

//namespace
use Illuminate\Support\Facades\Auth;