Relocating Default Login page

Laraship QuestionsCategory: TechnicalRelocating Default Login page
sr.devphp01 asked 5 years ago
Currently on Laraship module, we have home page that is the default page on which user lands. In the top menu, we have links for login and register. How can I make the login page as the default page? So that when users enter the URL of the website they lands on login page instead of home page
1 Answers
laraship Staff answered 5 years ago


the easiest way is to change the route at routes/web.php


Route::get('/', '\Corals\Foundation\Http\Controllers\PublicBaseController@welcome');


Route::get('/', ['as' => 'login', 'uses' => 'Auth\LoginController@showLoginForm']);