Skip to content

Commit

Permalink
Fix Jetstream SSR option (#281)
Browse files Browse the repository at this point in the history
* Fix Jetstream SSR option

* Update option description
  • Loading branch information
jessarcher authored Sep 8, 2023
1 parent fad548c commit 9b2b36b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/NewCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ protected function configure()
->addOption('jet', null, InputOption::VALUE_NONE, 'Installs the Laravel Jetstream scaffolding')
->addOption('dark', null, InputOption::VALUE_NONE, 'Indicate whether Breeze or Jetstream should be scaffolded with dark mode support')
->addOption('typescript', null, InputOption::VALUE_NONE, 'Indicate whether Breeze should be scaffolded with TypeScript support (Experimental)')
->addOption('ssr', null, InputOption::VALUE_NONE, 'Indicate whether Breeze should be scaffolded with Inertia SSR support')
->addOption('ssr', null, InputOption::VALUE_NONE, 'Indicate whether Breeze or Jetstream should be scaffolded with Inertia SSR support')
->addOption('api', null, InputOption::VALUE_NONE, 'Indicates whether Jetstream should be scaffolded with API support')
->addOption('teams', null, InputOption::VALUE_NONE, 'Indicates whether Jetstream should be scaffolded with team support')
->addOption('verification', null, InputOption::VALUE_NONE, 'Indicates whether Jetstream should be scaffolded with email verification support')
Expand Down Expand Up @@ -338,13 +338,14 @@ protected function installJetstream(string $directory, InputInterface $input, Ou
$commands = array_filter([
$this->findComposer().' require laravel/jetstream',
trim(sprintf(
$this->phpBinary().' artisan jetstream:install %s %s %s %s %s %s',
$this->phpBinary().' artisan jetstream:install %s %s %s %s %s %s %s',
$input->getOption('stack'),
$input->getOption('api') ? '--api' : '',
$input->getOption('dark') ? '--dark' : '',
$input->getOption('teams') ? '--teams' : '',
$input->getOption('pest') ? '--pest' : '',
$input->getOption('verification') ? '--verification' : '',
$input->getOption('ssr') ? '--ssr' : '',
)),
]);

Expand Down

0 comments on commit 9b2b36b

Please sign in to comment.