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

Utchin's avatar

Create team upon registering

any Spark experts out there able to advise on the best way to achieve this with spark:

Teams will act as a business in my use case. An individual user creates a "business" and can invite other users to it.

The business/team name will be captured at registration if they are from scratch, or ignored if they are on a referral link

Once a user is assigned to a business - they can no longer create teams or join others.

0 likes
1 reply
steve_laracasts's avatar

If I understand correctly, this is how it works out of the box. The user is asked to create a team immediately after registration.

All you need to do is stop users from creating additional teams is to add this to the booted method of your SparkServiceProvider:

Spark::noAdditionalTeams();

Be aware that to register your users on the same team, they must be invited by the owner of the team. If a new user registers they can create an entirely different team with the same name (personally I think this is not great, but whatever).

Please or to participate in this conversation.