mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-04 22:34:05 +00:00
add a fallback
This commit is contained in:
parent
c587c47b12
commit
78ccfc709a
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue