-
I've a Group model and I want to allow only group members create posts. Let's say a user joined X group and this user can create a post on this group. But this user shouldn't create a post on Y group. So is there a usage something like this?: |
Beta Was this translation helpful? Give feedback.
Answered by
drbyte
Apr 6, 2023
Replies: 1 comment 1 reply
-
You can use Laravel's model policies feature for that. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
drbyte
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can use Laravel's model policies feature for that.