TBH teams seems a bit v0.1 at the moment
You may need to accept that the user will get a personal team, detect that and get the user to 'create' a team but actually just rename the personal team.
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I'd like to disable the creation of a "Personal Team" and force the user to either create a team or be invited to a team.
Here's what I've changed to make this work, so far:
Within \App\Actions\Fortify > CreateNewUser > create(), I've removed the creation of a personal team:
public function create(array $input)
{
Validator::make($input, [
'name' => ['required', 'string', 'max:255'],
'email' => ['required', 'string', 'email', 'max:255', 'unique:users'],
'password' => ['required', 'string', new Password, 'confirmed'],
])->validate();
return DB::transaction(function () use ($input) {
return User::create([
'name' => $input['name'],
'email' => $input['email'],
'password' => Hash::make($input['password']),
]);
});
// return DB::transaction(function () use ($input) {
// return tap(User::create([
// 'name' => $input['name'],
// 'email' => $input['email'],
// 'password' => Hash::make($input['password']),
// ]),
// function (User $user) {
// $this->createTeam($user);
// });
// });
}
However it looks like vendor/laravel/jetstream/src/HasTeams.php forces a currentTeam value of the user's Personal Team if they do not currently have a selected team.
/**
* Get the current team of the user's context.
*/
public function currentTeam()
{
if (is_null($this->current_team_id)) {
$this->forceFill([
'current_team_id' => $this->personalTeam()->id,
])->save();
}
return $this->belongsTo(Jetstream::teamModel(), 'current_team_id');
}
This seems like an issue since it is directly hardcoded within the Jetstream package. Should I search for uses of personalTeam and override various methods of the Jetstream package somehow?
TBH teams seems a bit v0.1 at the moment
You may need to accept that the user will get a personal team, detect that and get the user to 'create' a team but actually just rename the personal team.
Please or to participate in this conversation.