Search
Setup for Free
F
Filament
•
2y ago
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,357
Members
View on Discord
Similar Threads
Was this page helpful?
Yes
No
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
hasRole('super_admin')
hasRole('super_admin')
Similar Threads
Export Action Filtered By Role
F
Filament / ❓┊help
2y ago
Hide Table
F
Filament / ❓┊help
16mo ago
RelationManager table custom query by role Policy
F
Filament / ❓┊help
2y ago
Open Table Heading Model Action by URL
F
Filament / ❓┊help
2y ago