This commit is contained in:
Steven Qiu 2024-01-12 20:44:58 +08:00 committed by GitHub
parent 739b9c97d7
commit 866e182c31
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -29,7 +29,7 @@ class RouteServiceProvider extends ServiceProvider
foreach ($router->getRoutes()->getRoutesByName() as $name => $route) {
if (Str::startsWith($name, ['passport.authorizations', 'passport.tokens', 'passport.clients'])) {
$route->middleware('verified');
$route->middleware(['auth', 'verified']);
}
}