Override default Auth routes in Laravel 7



PHP Snippet 1:

// Login Routes...
Route::get('admin-login', 'Admin\LoginController@showLoginForm')->name('admin.login');
Route::post('admin-login', 'Admin\LoginController@login');

// Logout Routes...
Route::post('admin-logout', 'Admin\LoginController@logout')->name('admin.logout');

// Registration Routes...
Route::get('admin-register', 'Admin\RegisterController@showRegistrationForm')->name('admin.register');
Route::post('admin-register', 'Admin\RegisterController@register');

// Password Reset Routes...
Route::get('admin-password/reset', 'Admin\ForgotPasswordController@showLinkRequestForm')->name('admin.password.request');
Route::post('admin-password/email', 'Admin\ForgotPasswordController@sendResetLinkEmail')->name('admin.password.email');
Route::get('admin-password/reset/{token}', 'Admin\ResetPasswordController@showResetForm')->name('admin.password.reset');
Route::post('admin-password/reset', 'Admin\ResetPasswordController@reset')->name('admin.password.update');

// Password Confirmation Routes...
Route::get('admin-password/confirm', 'Admin\ConfirmPasswordController@showConfirmForm')->name('admin.password.confirm');
Route::post('admin-password/confirm', 'Admin\ConfirmPasswordController@confirm');

// Email Verification Routes...
Route::get('admin-email/verify', 'Admin\VerificationController@show')->name('admin.verification.notice');
Route::get('admin-email/verify/{id}/{hash}', 'Admin\VerificationController@verify')->name('admin.verification.verify');
Route::post('admin-email/resend', 'Auth\VerificationController@resend')->name('admin.verification.resend');

PHP Snippet 2:

Auth::routes(['register' => false]);

PHP Snippet 3:

php artisan route:list