Select with belongsToMany. anyway of having it work but not accepting mulitple values?
Im having this question due to the docs on Select with eloquent relation.
I have the relation of users/teams, the user should only participate in one team but i don't want to give the user the ability to insert a user to multiple teams.
Should it be doable by puting rules/validation to the field or there is a another way?
Solution:Jump to solution
i fixed by just doing a relation manager and blocking the attach action if it has a relation
1 Reply
Solution
i fixed by just doing a relation manager and blocking the attach action if it has a relation