Your question is not clear, please explain more. What exactly you want to do?
May 6, 2020
6
Level 3
Make Laravel login basic page the index of my website?
Hello,
I found on the official documentation how to change the /home redirect but, I can't find where to put my /login page in index.
Like:
Route::get('/', 'LoginController@index')->name('indexpage');
But you know, this controller doesn't exist. I don't really want to change the basic Laravel authentication system, I just want to make the login page the home page of the site for now...
Thank you in advance for your help. Laravel version used : 7.x.
Level 75
Normal routes are
Route::get('login', 'LoginController@showLoginForm')->name('login');
Route::post('login', 'LoginController@login');
Route::post('logout', 'LoginController@logout')->name('logout');
Change it to
Route::get('/', 'LoginController@showLoginForm')->name('login');
Route::post('login', 'LoginController@login');
Route::post('logout', 'LoginController@logout')->name('logout');
1 like
Please or to participate in this conversation.