You can absolutely use the team id instead of the user id. Nothing wrong there. If your app doesn't require information about which user created this specific blog post you are mentioning, then you are all good.
Is Jetstream Multitenancy applicable?!
Hey,
I watched the video series https://laracasts.com/series/multitenancy-in-practice and have a question about the concept.
Can't you theoretically use Jetstream's built-in teams feature and associated team roles to the same extent as you would for a multi-tenant setup? ( Tenant = Team / Department = Team Role )
In principle, I can make everything team-dependent through the teams and for example not assign a blog post to a user but to a team from the beginning, or do I see it wrong?
In addition, you can set a GlobalScope simply on the team and thus the user can always only see what happens in the team in which he is. No matter if it's his own or another one, right?
For me it seems like, apart from the depth of the user roles, it's almost 1:1 the same as described in the video series, of course with small changes.
Please or to participate in this conversation.