mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 17:04:04 +00:00
Return $tags when route is empty
This commit is contained in:
parent
924b5abba6
commit
94e647c952
1 changed files with 4 additions and 0 deletions
|
|
@ -31,6 +31,10 @@ class TelescopeTags implements Feature
|
||||||
Telescope::tag(function (IncomingEntry $entry) {
|
Telescope::tag(function (IncomingEntry $entry) {
|
||||||
$tags = $this->getTags($entry);
|
$tags = $this->getTags($entry);
|
||||||
|
|
||||||
|
if (! request()->route()) {
|
||||||
|
return $tags;
|
||||||
|
}
|
||||||
|
|
||||||
$tenantRoute = PreventAccessFromTenantDomains::routeHasMiddleware(request()->route(), 'tenancy')
|
$tenantRoute = PreventAccessFromTenantDomains::routeHasMiddleware(request()->route(), 'tenancy')
|
||||||
|| PreventAccessFromTenantDomains::routeHasMiddleware(request()->route(), 'universal');
|
|| PreventAccessFromTenantDomains::routeHasMiddleware(request()->route(), 'universal');
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue