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:
i fixed by just doing a relation manager and blocking the attach action if it has a relation
Jump to solution
1 Reply
Solution
Firebat
Firebat6mo ago
i fixed by just doing a relation manager and blocking the attach action if it has a relation

Did you find this page helpful?