mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 18:14:04 +00:00
gatherMiddleware() instead of middleware()
This commit is contained in:
parent
4591c58dbf
commit
0dd9c3f9f0
1 changed files with 1 additions and 1 deletions
|
|
@ -50,7 +50,7 @@ class PreventAccessFromTenantDomains
|
|||
// Loop one level deep and check if the route's middleware
|
||||
// groups have a `tenancy` middleware group inside them
|
||||
$middlewareGroups = Router::getMiddlewareGroups();
|
||||
foreach ($route->middleware() as $middleware) {
|
||||
foreach ($route->gatherMiddleware() as $middleware) {
|
||||
if (isset($middlewareGroups[$middleware]) && in_array('tenancy', $middlewareGroups[$middleware], true)) {
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue