You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey there i'ts ne again 😃 ,
i've tried a few things now but i haven't figured out how to check users permission yet.
I've seen this code snippet on your Readme:
User::hasRole($roles, $superAdminAllowed = true)
But I can't figure out where to use this. I've tried using it on a view and if the permissions were not given i want to throw an exception. It shows me "Class user not found"? Can you give me a sample code or a hint what i am missing?
The text was updated successfully, but these errors were encountered:
Hey there i'ts ne again 😃 ,
i've tried a few things now but i haven't figured out how to check users permission yet.
I've seen this code snippet on your Readme:
User::hasRole($roles, $superAdminAllowed = true)
But I can't figure out where to use this. I've tried using it on a view and if the permissions were not given i want to throw an exception. It shows me "Class user not found"? Can you give me a sample code or a hint what i am missing?
The text was updated successfully, but these errors were encountered: