Thursday, July 6, 2017

How to have default forgot password but custom login and registration in Laravel

Asked by: EaB


I want to use the default forgot password but want to have custom login and registration

I have used generator make:auth and the scaffolding is generated

but the problem is:

//file web.php

Auth::routes();

Route::get('login',function(){
    return view('login');
});

Route::post('login','RegistrationController@login');

Route::get('register','RegistrationController@getRegister');
Route::post('register','RegistrationController@postRegister');

But All above routes takes me to default login and register page

but when I remove Auth::routes(); it takes me to all custom routes

but I want login, registration as custom routes and forgot password as a default of Laravel

my question: I want a login and registration custom routes to be applied but for forgot password default routes of Laravel to be applied.

how can I achieve this? Please help me thanks in advance!!!!



Source

No comments:

Post a Comment

Adbox