1
0
Fork 0

app/Http/Kernel.php: Add auth route middleware

This commit is contained in:
Henrik Hautakoski 2021-12-31 17:24:27 +01:00
parent 6dbeaa5f77
commit 30933e2711

View file

@ -34,4 +34,15 @@ class Kernel extends HttpKernel
\Illuminate\View\Middleware\ShareErrorsFromSession::class,
]
];
/**
* The application's route middleware.
*
* These middleware may be assigned to groups or used individually.
*
* @var array
*/
protected $routeMiddleware = [
'auth' => \App\Http\Middleware\Authenticate::class
];
}