1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-02-05 12:24:04 +00:00

add a fallback

This commit is contained in:
Samuel Štancl 2024-01-25 22:31:08 +01:00 committed by GitHub
parent c587c47b12
commit 78ccfc709a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -35,7 +35,7 @@ class UniversalRoutes implements Feature
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;
}