Relocating Default Login page

Relocating Default Login page

Laraship QuestionsCategory: TechnicalRelocating Default Login page
sr.devphp01 asked 4 months 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 4 months ago

Hello,

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

from

Route::get('/', '\Corals\Foundation\Http\Controllers\[email protected]');

to

Route::get('/', ['as' => 'login', 'uses' => 'Auth\[email protected]']);

50% OFF

No Minimum, No Exceptions
 
GO TO STORE
close-link