diff --git a/app/Http/Livewire/CreateTeam.php b/app/Http/Livewire/CreateTeam.php new file mode 100644 index 00000000..1b1dfa83 --- /dev/null +++ b/app/Http/Livewire/CreateTeam.php @@ -0,0 +1,27 @@ +validate(); + + $team = app(CreateTeam::class)->create( + Auth::user(), + ['name' => $this->state['name']] + ); + + return redirect()->route('filament.pages.edit-team', ['team' => $team]); + } +}