Skip to content

Commit

Permalink
Add exit admin to Menu (#723)
Browse files Browse the repository at this point in the history
  • Loading branch information
RMartinOscar authored Nov 21, 2024
1 parent 90afae7 commit f33f916
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions app/Providers/Filament/AdminPanelProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
use Filament\Http\Middleware\Authenticate;
use Filament\Http\Middleware\DisableBladeIconComponents;
use Filament\Http\Middleware\DispatchServingFilamentEvent;
use Filament\Navigation\MenuItem;
use Filament\Panel;
use Filament\PanelProvider;
use Filament\Support\Enums\MaxWidth;
Expand Down Expand Up @@ -45,6 +46,13 @@ public function panel(Panel $panel): Panel
->brandLogo(config('app.logo'))
->brandLogoHeight('2rem')
->profile(EditProfile::class, false)
->userMenuItems([
MenuItem::make()
->label('Exit Admin')
->url('/')
->icon('tabler-arrow-back')
->sort(24),
])
->maxContentWidth(MaxWidth::ScreenTwoExtraLarge)
->spa()
->discoverResources(in: app_path('Filament/Resources'), for: 'App\\Filament\\Resources')
Expand Down

0 comments on commit f33f916

Please sign in to comment.