login to a user object laravel code example
Example 1: how login one user with id in laravel
public function manualLogin(){
$user = User::find(1);
Auth::login($user);
return redirect('/');
}
///////////////////////////////////////////////////////////////
// or
Auth::logout();
Example 2: login with laravel
php artisan make:auth