1 | <?php
|
---|
2 |
|
---|
3 | use Illuminate\Support\Facades\Route;
|
---|
4 |
|
---|
5 | /*
|
---|
6 | |--------------------------------------------------------------------------
|
---|
7 | | Web Routes
|
---|
8 | |--------------------------------------------------------------------------
|
---|
9 | |
|
---|
10 | | Here is where you can register web routes for your application. These
|
---|
11 | | routes are loaded by the RouteServiceProvider within a group which
|
---|
12 | | contains the "web" middleware group. Now create something great!
|
---|
13 | |
|
---|
14 | */
|
---|
15 |
|
---|
16 | ////////////////////
|
---|
17 | // Auth Routes
|
---|
18 | ////////////////////
|
---|
19 | Route::prefix('auth')->group(function () {
|
---|
20 |
|
---|
21 | Route::get('/login', "Auth\LoginController@showLogin")->name("auth.loginShow");
|
---|
22 | Route::post('/login', "Auth\LoginController@login")->name("auth.login");
|
---|
23 | Route::post('/logout', "Auth\LoginController@logout")->name("auth.logout");
|
---|
24 |
|
---|
25 | Route::get('/forgot', "Auth\ForgotPasswordController@showForgotPassword")->name("auth.forgotShow");
|
---|
26 | Route::post('/forgot', "Auth\ForgotPasswordController@forgotPassword")->name("auth.forgot");
|
---|
27 |
|
---|
28 | Route::group(['middleware' => "createPassword"], function () {
|
---|
29 | Route::get('/create-password/{id}/{token}', "Auth\CreatePasswordController@showCreatePassword")->name("auth.create-password-show");
|
---|
30 | Route::post('/create-password/{id}/{token}', "Auth\CreatePasswordController@createPassword")->name("auth.create-password");
|
---|
31 | });
|
---|
32 |
|
---|
33 | Route::group(['middleware' => "checkVerifyNewEmail"], function () {
|
---|
34 | Route::get('/verify/{id}/{token}', "Auth\VerifyNewEmailController@create")->name("auth.verifyShow");
|
---|
35 | Route::post('/verify/{id}/{token}', "Auth\VerifyNewEmailController@verify")->name("auth.verify");
|
---|
36 | });
|
---|
37 |
|
---|
38 | });
|
---|