mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 19:14:04 +00:00
Add [] fallback
This commit is contained in:
parent
824ecfce48
commit
1f4aa77ac4
1 changed files with 1 additions and 1 deletions
|
|
@ -63,7 +63,7 @@ class TenancyServiceProvider extends ServiceProvider
|
|||
Telescope::tag(function (\Laravel\Telescope\IncomingEntry $entry) {
|
||||
$tags = $this->app->make(TenantManager::class)->integration('telescope', $entry);
|
||||
|
||||
if (\in_array('tenancy', request()->route()->middleware())) {
|
||||
if (\in_array('tenancy', optional(request()->route())->middleware() ?? [])) {
|
||||
$tags = \array_merge($tags, [
|
||||
'tenant:' . tenant('uuid'),
|
||||
'domain:' . tenant('domain'),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue