fix: on team creation, redirect to the new team instantly

This commit is contained in:
Andras Bacsai 2025-10-07 20:45:04 +02:00
parent 5e711fbfeb
commit fc7e31799c

View file

@ -35,7 +35,7 @@ public function submit()
'personal_team' => false,
]);
auth()->user()->teams()->attach($team, ['role' => 'admin']);
refreshSession();
refreshSession($team);
return redirect()->route('team.index');
} catch (\Throwable $e) {