1Laravel's laravel/ui package provides a quick way to scaffold all of the routes and views you need for authentication using a few simple commands:
2
3composer require laravel/ui
4
5php artisan ui vue --auth
1// Only for laravel 6.x and higher
2composer require laravel/ui "^1.0" --dev
3
4php artisan ui vue --auth
1composer require laravel/ui --dev
2php artisan ui vue --auth
3
1public function manualLogin(){
2 $user = User::find(1);
3 Auth::login($user);
4 return redirect('/');
5}
6
7
8or
9
10
11 Auth::logout();
12
13
14
15
16
17
1// Laravel 5.x
2php artisan make:auth