© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
4 replies
Ali Mahdavi

How to condition visible resource generated navigation item

how to conditionaly show or hide navigation item like Users created by UserResource for some role of users

when using NavigationItems([]) how to access already navigations registered by resource ?
Solution
Navigation items pull in the page or resources policies. so if you setup a policy that determined in the canView function that users have X or Y then they can view it will be rendered
Jump to solution
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

Resource is not visible in navigation menu
FilamentFFilament / ❓┊help
15mo ago
CreateAction Visible on condition
FilamentFFilament / ❓┊help
2y ago
Visible condition by relationship
FilamentFFilament / ❓┊help
3y ago
resource navigation
FilamentFFilament / ❓┊help
2y ago