mpociot / teamwork

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

[QUESTION] Possible for Other Models #135

Closed ghost closed 2 years ago

ghost commented 3 years ago

Marcel,

Is it possible to create teams based on a different model?

I'd like to have my companies model be the owner of the team, then be able to add users from that company to different teams.

Would I need to rewrite large sections of this, or would that scenario drop right in via configs?

Thanks

okaufmann commented 3 years ago

You could try to add the trait to your model like https://github.com/mpociot/teamwork#user

ghost commented 3 years ago

@okaufmann

I could try that if I wanted to install the package and go to all the trouble of setting it up.

Or the author could simply answer the question and save us all a lot of time and trouble.

okaufmann commented 2 years ago

I think you found a way to fix your requirement meanwhile. Otherwise, feel free to open a new issue.