Skip to content

Commit cfbb7de

Browse files
authored
Merge pull request #23 from Heyian/main
Pull URL from config
2 parents ddc624f + 7bb6164 commit cfbb7de

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

config/filament-debugger.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,9 @@
1414
],
1515

1616
'group' => 'Debugger',
17+
18+
'url' => [
19+
'horizon' => env('HORIZON_PATH', 'horizon'),
20+
'telescope' => env('TELESCOPE_PATH', 'telescope'),
21+
],
1722
];

src/Traits/HasDebuggers.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public function telescope(): NavigationItem
2020
return NavigationItem::make()
2121
->visible($this->authorized(config('filament-debugger.permissions.telescope')))
2222
->group(config('filament-debugger.group'))
23-
->url(url: url('telescope'), shouldOpenInNewTab: true)
23+
->url(url: url()->to(config('filament-debugger.url.telescope')), shouldOpenInNewTab: true)
2424
->icon('heroicon-o-sparkles')
2525
->label('Telescope');
2626
}
@@ -31,7 +31,7 @@ public function horizon(): NavigationItem
3131
->visible($this->authorized(config('filament-debugger.permissions.horizon')))
3232
->group(config('filament-debugger.group'))
3333
->icon('heroicon-o-globe-europe-africa')
34-
->url(url: url('horizon'), shouldOpenInNewTab: true)
34+
->url(url: url()->to(config('filament-debugger.url.horizon')), shouldOpenInNewTab: true)
3535
->label('Horizon');
3636
}
3737
}

0 commit comments

Comments
 (0)