I use Auth::routes(); in my web.php for routing authentication.
Defoult routes rules are located in .../vendor/laravel/framework/src/Illuminate/Routing/Router.php and looks like this:
public function auth()
{
// Authentication Routes...
$this->get('login', 'Auth\LoginController@showLoginForm')->name('login');
$this->post('login', 'Auth\LoginController@login');
$this->post('logout', 'Auth\LoginController@logout')->name('logout');
// Registration Routes...
$this->get('register', 'Auth\RegisterController@showRegistrationForm')->name('register');
$this->post('register', 'Auth\RegisterController@register');
// Password Reset Routes...
$this->get('password/reset', 'Auth\ForgotPasswordController@showLinkRequestForm');
$this->post('password/email', 'Auth\ForgotPasswordController@sendResetLinkEmail');
$this->get('password/reset/{token}', 'Auth\ResetPasswordController@showResetForm');
$this->post('password/reset', 'Auth\ResetPasswordController@reset');
}
I need to overwrite this rules for example:
$this->get('/admin/password/reset', 'Auth\ForgotPasswordController@showLinkRequestForm');
$this->post('/admin/password/email', 'Auth\ForgotPasswordController@sendResetLinkEmail');
but I do not want to change anything in vendor.