1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-02-04 20:54:03 +00:00

Use Telescope tags on universal routes too - fix #346

This commit is contained in:
Samuel Štancl 2020-04-23 19:08:54 +02:00
parent 5044339da6
commit 56903d20bf
2 changed files with 6 additions and 2 deletions

View file

@ -45,7 +45,7 @@ class PreventAccessFromTenantDomains
return $next($request);
}
public function routeHasMiddleware(Route $route, $middleware): bool
public static function routeHasMiddleware(Route $route, $middleware): bool
{
if (in_array($middleware, $route->middleware(), true)) {
return true;