© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•11mo ago•
8 replies
jjo63

Filament Panel - how hide / show items based on user privileges?

Hi in my app we have 2 classes of user - internal_researcher & external_researcher. For the latter, we want to show few options in the menu (which I have done by adding into the relevant resources code similar to this)

    public static function shouldRegisterNavigation(): bool
    {
        // Replace this with your condition
        if (auth()->user()->is_external_researcher)
            return true;
        else
            return false;
    }
    public static function shouldRegisterNavigation(): bool
    {
        // Replace this with your condition
        if (auth()->user()->is_external_researcher)
            return true;
        else
            return false;
    }


The dashboard has some widgets and another panel and I am trying to understand / locate documentation to describe how to conditionally show these based on user some condition.

Would appreciate a pointer to relevant docs.

Thanks in advance,
j
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 a different Filament Panel based on the user role?
FilamentFFilament / ❓┊help
3y ago
Show/Hide fields based on selection
FilamentFFilament / ❓┊help
3y ago
show/hide reorder based on conditions?
FilamentFFilament / ❓┊help
3y ago
How to Hide Panel Icons Based on User Roles and Order Panels
FilamentFFilament / ❓┊help
2y ago