diff --git a/README.md b/README.md index fe219e99..a91ce3a4 100644 --- a/README.md +++ b/README.md @@ -30,5 +30,5 @@ The repository with the documentation source code can be found here: [stancl/ten ### Credits -- Created by [Samuel Štancl](https://github.com/stancl) -- Logo by [Caneco](https://twitter.com/caneco) +- Created by [Samuel Štancl](https://twitter.com/samuelstancl) +- Logo by [Brian Dillingham](https://twitter.com/dillinghammm) diff --git a/assets/config.php b/assets/config.php index 2539b9be..508b79d9 100644 --- a/assets/config.php +++ b/assets/config.php @@ -67,7 +67,7 @@ return [ ], /** - * Controller namespace used for routes in routes/tenant.php. + * Controller namespace used by routes in routes/tenant.php. */ 'tenant_route_namespace' => 'App\Http\Controllers', diff --git a/src/Features/TelescopeTags.php b/src/Features/TelescopeTags.php index 079c6fb5..fe63ef93 100644 --- a/src/Features/TelescopeTags.php +++ b/src/Features/TelescopeTags.php @@ -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');