-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[question] Personal teams? #33
Comments
Hello! This is an interesting question. The core idea behind the approach I followed is to work with "teams," where it’s assumed that each user belongs to a team. All functionality is strictly tied to this concept. That said, there are a couple of potential solutions:
Upon user registration, a team can be created where the user is designated as the owner. This is currently implemented using the user_id key in the main team entity. No additional actions are required. If needed, you can restrict adding other users to this team or granting them permissions.
Alternatively, you can skip creating teams and instead bind the necessary entities directly to the user using custom logic. In this case, the package’s team-related functionality would be bypassed, and you’d need to manually handle all access rights. If you have any other suggestions on how this issue could be resolved differently, I’m always open to new ideas and initiatives! |
Thanks for the quick response! Option 1 (create a "Personal team" for the user) seems like better suggestion. This is based on the fact that if we have some arbitrary model (let's say From the Laravel Jeatstream docs:
I think there's presidence set here by the benevolent gods of a first-party Laravel package, so maybe that is the "best" way. 🤷 |
Hi thank you for the package. This isn't an issue but rather a discussion question.
How should I think about a user's personal team? For instance, in most products (like Notion) a user signs up and has a "personal" project (or team). How can we assign items to a specific user (who is teamless)?
The text was updated successfully, but these errors were encountered: