Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

myregistration's avatar

How can I share user menu items between multiple filament panels?

How can I share user menu items between multiple filament panels? I tried using the following code in the boot method of the AppServiceProvider, but doesn't appear to work.

            Filament::registerUserMenuItems([
                MenuItem::make()->label('Admin')
                    ->url(fn() => route('filament.admin.pages.dashboard'))
                    ->visible(fn(): bool => auth()->user()->hasRole('super', 'admin')),
            ]);
        });
0 likes
1 reply
tisuchi's avatar

@myregistration Try this by updating your boot method:


 public function boot()
    {
        Filament::registerUserMenuItems([
            UserMenuItem::make()
                ->label('Admin')
                ->url(route('filament.pages.dashboard'))
                ->visible(fn() => auth()->user()->hasRole('super', 'admin')),
        ]);
    }

Please or to participate in this conversation.