Answers for "laravel get the auth user"

PHP
1

laravel check auth

use IlluminateSupportFacadesAuth;

if (Auth::check()) {
    // The user is logged in...
}
Posted by: Guest on March-11-2020
0

laravel auth gurd for login user

Route::get('/flights', function () {
    // Only authenticated users may access this route...
})->middleware('auth:admin');
Posted by: Guest on August-13-2021

Browse Popular Code Answers by Language