Skip to content

Commit 88c111b

Browse files
committed
Add Horizon to user menu
1 parent 8e762c7 commit 88c111b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

app/Providers/Filament/AdminPanelProvider.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
namespace App\Providers\Filament;
44

5+
use Filament\Actions\Action;
56
use Filament\Http\Middleware\Authenticate;
67
use Filament\Http\Middleware\AuthenticateSession;
78
use Filament\Http\Middleware\DisableBladeIconComponents;
@@ -55,6 +56,12 @@ public function panel(Panel $panel): Panel
5556
->authMiddleware([
5657
Authenticate::class,
5758
])
59+
->userMenuItems([
60+
Action::make('Horizon')
61+
->url(fn(): string => route('horizon.index'))
62+
->icon('heroicon-o-presentation-chart-bar')
63+
->openUrlInNewTab(),
64+
])
5865
->brandLogo(asset('images/laravelio-logo.svg'))
5966
->unsavedChangesAlerts()
6067
->spa();

0 commit comments

Comments
 (0)