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<!-- Default Laravel Auth Routes / Links for reference -->
2@if (Route::has('login'))
3 <div class="">
4 @auth
5 <a href="{{ url('/dashboard') }}" class="">Dashboard</a>
6 @else
7 <a href="{{ route('login') }}" class="">Log in</a>
8 @if (Route::has('register'))
9 <a href="{{ route('register') }}" class="">Register</a>
10 @endif
11 @endauth
12 </div>
13@endif
1+--------+----------+------------------------+------------------+------------------------------------------------------------------------+------------+
2| Domain | Method | URI | Name | Action | Middleware |
3+--------+----------+------------------------+------------------+------------------------------------------------------------------------+------------+
4| | GET|HEAD | login | login | App\Http\Controllers\Auth\LoginController@showLoginForm | web |
5| | | | | | guest |
6| | POST | login | | App\Http\Controllers\Auth\LoginController@login | web |
7| | | | | | guest |
8| | POST | logout | logout | App\Http\Controllers\Auth\LoginController@logout | web |
9| | GET|HEAD | password/confirm | password.confirm | App\Http\Controllers\Auth\ConfirmPasswordController@showConfirmForm | web |
10| | | | | | auth |
11| | POST | password/confirm | | App\Http\Controllers\Auth\ConfirmPasswordController@confirm | web |
12| | | | | | auth |
13| | POST | password/email | password.email | App\Http\Controllers\Auth\ForgotPasswordController@sendResetLinkEmail | web |
14| | GET|HEAD | password/reset | password.request | App\Http\Controllers\Auth\ForgotPasswordController@showLinkRequestForm | web |
15| | POST | password/reset | password.update | App\Http\Controllers\Auth\ResetPasswordController@reset | web |
16| | GET|HEAD | password/reset/{token} | password.reset | App\Http\Controllers\Auth\ResetPasswordController@showResetForm | web |
17| | GET|HEAD | register | register | App\Http\Controllers\Auth\RegisterController@showRegistrationForm | web |
18| | | | | | guest |
19| | POST | register | | App\Http\Controllers\Auth\RegisterController@register | web |
20| | | | | | guest |
21+--------+----------+------------------------+------------------+------------------------------------------------------------------------+------------+