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

mhebs's avatar
Level 1

Team create on registration but not on team invite.

I want to be able for users to register their company on registration but I do not want invited users to have access to creating teams.

What is the best way to do this?

0 likes
1 reply
Braunson's avatar
Braunson
Best Answer
Level 18

By default only 'owners' can invite people. So allow the registration of a company assuming it's the 'owner' registering every time.

You'll want to add the following to your booted method of your SparkServiceProvider:

Spark::noAdditionalTeams();

See https://spark.laravel.com/docs/9.0/teams at the bottom of Introduction

Please or to participate in this conversation.