source: routes/web.php@ 7304c7f

develop
Last change on this file since 7304c7f was 7304c7f, checked in by beratkjufliju <kufliju@…>, 3 years ago

added user authentication, create & forgot password methods and blades

  • Property mode set to 100644
File size: 1.6 KB
RevLine 
[2fc88ec]1<?php
2
3use 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
[7304c7f]16////////////////////
17// Auth Routes
18////////////////////
19Route::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
[2fc88ec]38});
Note: See TracBrowser for help on using the repository browser.