mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 15:54:03 +00:00
Merge branch '2.x' of github.com:stancl/tenancy into 2.x
This commit is contained in:
commit
03e21621a0
3 changed files with 7 additions and 3 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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',
|
||||
|
||||
|
|
|
|||
|
|
@ -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');
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue