© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
F
Filament
•
2y ago
•
4 replies
EL REKT
Hide action table by role
I use spatie shield to set roles for users
, I want to hide some actions in the table if the role is not super admin
, how do I do that
? I have tried this but it doesn
't work
.
Solution
Shouldn
't it be
hasRole('super_admin')
hasRole('super_admin')
?
Jump to solution
Filament
Join
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
Recent Announcements
Similar Threads
Export Action Filtered By Role
F
Filament / ❓┊help
2y ago
Hide Table
F
Filament / ❓┊help
17mo ago
RelationManager table custom query by role Policy
F
Filament / ❓┊help
3y ago
Open Table Heading Model Action by URL
F
Filament / ❓┊help
2y ago