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') ?
Was this page helpful?