Replies: 2 comments 1 reply
-
Make tests and tell us, thanks |
Beta Was this translation helpful? Give feedback.
1 reply
-
@some0ne2 Yes, what you described is the best place to start. If your app doesn't have more advanced requirements than that it should be fine without much change! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
After reading the docs, it's recommended to use permissions over roles, I've included several permissions (at the moment around 30 permissions).
Because they are verify specific, let me inlcude some, f.e. the
Product
model itself has several:Since I'm required to check in specific controller actions for these permissions, I started to include Policies like:
app/Policies/ProductPolicy.php
Inside the controller actions I check for permissions like:
-Thank you a lot for your time & help. 🙏
Beta Was this translation helpful? Give feedback.
All reactions