Skip to content

Commit fb27b0d

Browse files
committed
wip
1 parent ad07522 commit fb27b0d

1 file changed

Lines changed: 10 additions & 4 deletions

File tree

src/ToolsPlugin.php

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,15 @@ public function register(Panel $panel): void
2828
app()->register(\Backstage\Tools\Providers\PulseServiceProvider::class);
2929
app()->register(\Backstage\Tools\Providers\TelescopeServiceProvider::class);
3030

31-
config([
32-
'horizon.path' => $panel->getPath() . '/horizon',
33-
]);
31+
if (!empty($panel->getPath())) {
32+
config([
33+
'horizon.path' => $panel->getPath() . '/horizon',
34+
]);
35+
} else {
36+
config([
37+
'horizon.path' => 'horizon',
38+
]);
39+
}
3440

3541
config([
3642
'horizon.middleware' => [
@@ -64,7 +70,7 @@ public function register(Panel $panel): void
6470

6571
$panel->renderHook(
6672
PanelsRenderHook::GLOBAL_SEARCH_AFTER,
67-
fn (): string => Blade::render('@livewire(\'backstage/tools::tools\')'),
73+
fn(): string => Blade::render('@livewire(\'backstage/tools::tools\')'),
6874
);
6975
}
7076

0 commit comments

Comments
 (0)