1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2025-12-12 22:34:03 +00:00

Merge branch '2.x' of github.com:stancl/tenancy into 2.x

This commit is contained in:
Samuel Štancl 2020-04-25 01:30:40 +02:00
commit 03e21621a0
3 changed files with 7 additions and 3 deletions

View file

@ -31,6 +31,10 @@ class TelescopeTags implements Feature
Telescope::tag(function (IncomingEntry $entry) {
$tags = $this->getTags($entry);
if (! request()->route()) {
return $tags;
}
$tenantRoute = PreventAccessFromTenantDomains::routeHasMiddleware(request()->route(), 'tenancy')
|| PreventAccessFromTenantDomains::routeHasMiddleware(request()->route(), 'universal');