So you probably want to ensure, that everyone is properly authenticated and logged in.
In you routes file you should run all routes where only authenticated user should have access through the auth
middlware.
Route::group(['middleware' => ['auth']], function() {
Route::get('/home', 'HomeController@index')->name('home');
// more routes
});
To specify where the user should be redirected to you can open the middleware at app/Http/Middlware/Authentication.php
and check the method
protected function redirectTo($request)
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…