mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 05:44:04 +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
|
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;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue