Changeset 7304c7f for routes/web.php


Ignore:
Timestamp:
09/27/21 23:25:43 (3 years ago)
Author:
beratkjufliju <kufliju@…>
Branches:
develop, master
Children:
582789f
Parents:
2fc88ec
Message:

added user authentication, create & forgot password methods and blades

File:
1 edited

Legend:

Unmodified
Added
Removed
  • routes/web.php

    r2fc88ec r7304c7f  
    1414*/
    1515
    16 Route::get('/', function () {
    17     return view('welcome');
     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
    1838});
Note: See TracChangeset for help on using the changeset viewer.