auth::routes() can be mannually written as :
so by commenting auth routes in web.php and pasting above code it will work then you can change url easily.
Reference: https://stackoverflow.com/questions/39196968/laravel-5-3-new-authroutes
//see for 5.7 only// other are useless
change /home to redirect after login in backend to another url
Route::get('/adminpannel/hmc', 'HomeController@index')->name('home');
change inside auth/logincontroller
so by commenting auth routes in web.php and pasting above code it will work then you can change url easily.
Reference: https://stackoverflow.com/questions/39196968/laravel-5-3-new-authroutes
//see for 5.7 only// other are useless
// Auth::routes();
// Authentication Routes...
Route::get('backend/loginadmin', 'Auth\LoginController@showLoginForm')->name('login');
Route::post('backend/loginadmin', 'Auth\LoginController@login');
Route::post('logout', 'Auth\LoginController@logout')->name('logout');
// Registration Routes...
Route::get('register/backendadmin', 'Auth\RegisterController@showRegistrationForm')->name('register');
Route::post('register/backendadmin', 'Auth\RegisterController@register');
// Password Reset Routes...
Route::get('password/reset', 'Auth\ForgotPasswordController@showLinkRequestForm')->name('password.request');
Route::post('password/email', 'Auth\ForgotPasswordController@sendResetLinkEmail')->name('password.email');
Route::get('password/reset/{token}', 'Auth\ResetPasswordController@showResetForm')->name('password.reset');
Route::post('password/reset', 'Auth\ResetPasswordController@reset')->name('password.update');
// Email Verification Routes...
Route::get('email/verify', 'Auth\VerificationController@show')->name('verification.notice');
Route::get('email/verify/{id}', 'Auth\VerificationController@verify')->name('verification.verify');
Route::get('email/resend', 'Auth\VerificationController@resend')->name('verification.resend');
// Route::get('/home', 'HomeController@index')->name('home');
Route::get('/adminpannel/hmc', 'HomeController@index')->name('home');
change /home to redirect after login in backend to another url
Route::get('/adminpannel/hmc', 'HomeController@index')->name('home');
change inside auth/logincontroller
// protected $redirectTo = '/home';
protected $redirectTo = '/adminpannel/hmc';
Comments
Post a Comment