You can add auth middleware to all your routes
https://laravel.com/docs/5.3/middleware#assigning-middleware-to-routes
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I created a fresh installation of Laravel and ran php artisan make:auth. The pages are successfully generated but I want to be directed to the Login Page as the default page. I did something like this in my route:
Route::get('/', function () {
return redirect(route('login'));
});
This does the job but doesn't seem to be the correct solution. Is there other better ways to achieve this?
I do that a lot and just wrap everything except the auth routes inside a group, eg :
Auth::routes();
Route::group(['middleware' => 'auth'], function () {
Route::get('/', ...);
Route::get('/something'....);
});
Please or to participate in this conversation.