I'm trying to create a landing page that is informational and there is a dialog that opens up where the admin can login, however it's not a login page only.
The default routes show up as /login which I don't want. I would like the landing page to have the route \info.
Right now I have the original setup
web.php
Route::get('login', 'Auth\LoginController@showLoginForm')->name('login');
Route::post('login')->name('login.attempt')->uses('Auth\LoginController@login');
Route::group(['middleware' => 'auth'], function () {
Route::resource('/', 'DashController');
Route::get('/logout')->name('logout')->uses('Auth\LoginController@logout');
});
Authenticate middleware
protected function redirectTo($request)
{
if (! $request->expectsJson()) {
return route('login');
}
}
How can I change it? I'm using Laravel 6x.