Skip to content

Commit

Permalink
add a fallback
Browse files Browse the repository at this point in the history
  • Loading branch information
stancl authored Jan 25, 2024
1 parent c587c47 commit 78ccfc7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Features/UniversalRoutes.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public function bootstrap(Tenancy $tenancy): void

public static function routeHasMiddleware(Route $route, $middleware): bool
{
if (in_array($middleware, $route->computedMiddleware, true)) {
if (in_array($middleware, $route->computedMiddleware ?? $route->middleware(), true)) {
return true;
}

Expand Down

0 comments on commit 78ccfc7

Please sign in to comment.