© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•5mo ago•
4 replies
Xanax81

How to render admin panel navigation item only for selected users

I'm facing some difficulties when trying to access my authenticated user's data in AdminPanelProvider.

In my specific case I want to use Filament Debugger plugin (that adds panels to Telescope, Horizon and Pulse) only for super_admin role from Shield, but examples like "display Birthday Panel" would be more than enough if anyone has one!

The code I'm trying with is:
$panel->plugin(DebuggerPlugin::make())
Which is working for all users, but when I try to wrap it in
auth()->user()?->hasRole('super_admin')
condition, it always returns Null and panel is never available. I've tried to dd() a couple options, but nothing worked
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

How to show panel navigation only to certain users?
FilamentFFilament / ❓┊help
2y ago
dynamic navigation item in panel
FilamentFFilament / ❓┊help
3y ago
How to scope render hook to one Panel only?
FilamentFFilament / ❓┊help
2y ago
re-render sidebar when item is selected
FilamentFFilament / ❓┊help
3y ago