Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenjude committed Feb 29, 2024
1 parent 99e6e8d commit f044aa7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Commands/FilamentJetstreamCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(' <bg=yellow;fg=black> WARN </> '.$e->getMessage().PHP_EOL);
}
}
Expand Down
3 changes: 2 additions & 1 deletion src/Pages/CreateTeam.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand All @@ -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);
}
Expand Down

0 comments on commit f044aa7

Please sign in to comment.