Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

naekobest's avatar

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.

0 likes
2 replies
bugsysha's avatar

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.

1 like
naekobest's avatar

Good to hear.

Basically everything the user can create/update/delete should belong to a team. We aren't quite sure yet in which approach we want the billing portal to be.

Have each user buy the subscription for the team, so that each user has his own billing portal or if we want to use the global aspect and make the subscriptions team based and have only one billing portal for each team, so that all users with givin permission can see it.

Please or to participate in this conversation.