Manage status by roles #12864
-
PackageTable builder Package Versionv3.2 How can we help you?I want to manage model status, some status can be modified only by certain role users, i have shield plugin installed and i have the custom permissions created. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
If you want to show/hide an action by role ->visible(auth()->user()->hasRole('super_admin')) |
Beta Was this translation helpful? Give feedback.
i found this is an error of intelephense Undefined method 'hasRole'.intelephense(P1013) after disable the plugin installing another one and then restarting the vscode all goes okay