Answers for "create frontent user login in laravel"

PHP
4

how login one user with id in laravel

public function manualLogin(){
    $user = User::find(1);
    Auth::login($user);
    return redirect('/');
}
///////////////////////////////////////////////////////////////
// or 

Auth::logout();
Posted by: Guest on May-24-2021
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