File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments