methods in auth() in laravel code example
Example 1: laravel 7 auth
composer require laravel/ui
php artisan ui vue --auth
Example 2: auth::login in laravel
public function manualLogin(){
$user = User::find(1);
Auth::login($user);
return redirect('/');
}
or
Auth::logout();