From f044aa7f50b244e627222a42ae9e79a2b1133020 Mon Sep 17 00:00:00 2001 From: stephenjude Date: Thu, 29 Feb 2024 18:26:36 +0100 Subject: [PATCH] WIP --- src/Commands/FilamentJetstreamCommand.php | 2 +- src/Pages/CreateTeam.php | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Commands/FilamentJetstreamCommand.php b/src/Commands/FilamentJetstreamCommand.php index 2639759..71352da 100644 --- a/src/Commands/FilamentJetstreamCommand.php +++ b/src/Commands/FilamentJetstreamCommand.php @@ -308,7 +308,7 @@ protected function runCommands($commands): void if ('\\' !== DIRECTORY_SEPARATOR && file_exists('/dev/tty') && is_readable('/dev/tty')) { try { $process->setTty(true); - } catch (RuntimeException $e) { + } catch (\RuntimeException $e) { $this->output->writeln(' WARN '.$e->getMessage().PHP_EOL); } } diff --git a/src/Pages/CreateTeam.php b/src/Pages/CreateTeam.php index 45ef446..aafc0aa 100644 --- a/src/Pages/CreateTeam.php +++ b/src/Pages/CreateTeam.php @@ -6,6 +6,7 @@ use Filament\Forms\Components\TextInput; use Filament\Forms\Form; use Filament\Pages\Tenancy\RegisterTenant; +use Illuminate\Database\Eloquent\Model; class CreateTeam extends RegisterTenant { @@ -22,7 +23,7 @@ public function form(Form $form): Form ]); } - protected function handleRegistration(array $data): Team + protected function handleRegistration(array $data): Model { return app(\App\Actions\Jetstream\CreateTeam::class)->create(auth()->user(), $data); }