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

number6's avatar

[Team Type] Individual vs. Enterprise

I am building an app using Spark and have a specific need regarding team "types". In my scenario, the two types of teams will receive access to completely different parts of the app. For example:

If you sign up as an "Individual" team, you can add members to your team and will have access to service A B and C.

If you sign up as a "Enterprise" team, you add members just like the Individual, but you have access to service X Y and Z.

Essentially I am going to add a new key in the teams table that tells me what kind of team it is, setup middleware that keeps services separate, entirely different "billing tiers" etc.

Has anyone done something like this or is there an example of how you'd incorporate it as seamless as possible into Spark?

Individual & Enterprise teams would have different billing options too:

free, $10, $25 vs. $100, $250, $500

Is it as simple as adding a new field and using middleware that restricts requests based on the user's "team type"? How would you handle splitting billing like that? Want to make sure I see the whole picture as I am not very experienced with Spark.

It seems as though I can use individual and team billing together in the same app, but wanted to see how plausible it is to have two types of billing options, but allow them both to have multiple members no matter which one they pick (small vs. enterprise).

0 likes
0 replies

Please or to participate in this conversation.