mpociot / teamwork

User to Team associations with invitation system for the Laravel 5 Framework
MIT License
1.07k stars 170 forks source link

Perhaps a setTeamOwner method? #31

Closed kevinruscoe closed 6 years ago

kevinruscoe commented 8 years ago

Doesn't seem to have a handy method to set the owner of a team

mpociot commented 8 years ago

Would you be open to create a PR for this feature?

ziming commented 8 years ago

Does assigning a user id to owner_id in Team model also add an entry to team_user table?

ziming commented 8 years ago

Or is it expected that if you are a team owner of team X, there will not be an entry of you in user_team for team X?

codedninja commented 7 years ago

When you assign an user_id to owner_id of a Team you need to add to run attachTeam() afterwards.