Answers for "laravel use auth facade login with username or email"

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
2

get user auth in laravel

Auth::user();
Posted by: Guest on July-06-2020

Code answers related to "laravel use auth facade login with username or email"

Browse Popular Code Answers by Language