Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

how login one user with id in laravel

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

Auth::logout();
 
PREVIOUS NEXT
Tagged: #login #user #id #laravel
ADD COMMENT
Topic
Name
2+9 =