@@ -35,13 +35,15 @@ protected function configure()
3535 ->addOption ('branch ' , null , InputOption::VALUE_REQUIRED , 'The branch that should be created for a new repository ' , $ this ->defaultBranch ())
3636 ->addOption ('github ' , null , InputOption::VALUE_OPTIONAL , 'Create a new repository on GitHub ' , false )
3737 ->addOption ('organization ' , null , InputOption::VALUE_REQUIRED , 'The GitHub organization to create the new repository for ' )
38+ ->addOption ('stack ' , null , InputOption::VALUE_OPTIONAL , 'The Breeze / Jetstream stack that should be installed ' )
3839 ->addOption ('breeze ' , null , InputOption::VALUE_NONE , 'Installs the Laravel Breeze scaffolding ' )
40+ ->addOption ('jet ' , null , InputOption::VALUE_NONE , 'Installs the Laravel Jetstream scaffolding ' )
3941 ->addOption ('dark ' , null , InputOption::VALUE_NONE , 'Indicate whether Breeze or Jetstream should be scaffolded with dark mode support ' )
4042 ->addOption ('typescript ' , null , InputOption::VALUE_NONE , 'Indicate whether Breeze should be scaffolded with TypeScript support (Experimental) ' )
4143 ->addOption ('ssr ' , null , InputOption::VALUE_NONE , 'Indicate whether Breeze should be scaffolded with Inertia SSR support ' )
42- ->addOption ('jet ' , null , InputOption::VALUE_NONE , 'Installs the Laravel Jetstream scaffolding ' )
43- ->addOption ('stack ' , null , InputOption::VALUE_OPTIONAL , 'The Breeze / Jetstream stack that should be installed ' )
44+ ->addOption ('api ' , null , InputOption::VALUE_NONE , 'Indicates whether Jetstream should be scaffolded with API support ' )
4445 ->addOption ('teams ' , null , InputOption::VALUE_NONE , 'Indicates whether Jetstream should be scaffolded with team support ' )
46+ ->addOption ('verification ' , null , InputOption::VALUE_NONE , 'Indicates whether Jetstream should be scaffolded with email verification support ' )
4547 ->addOption ('pest ' , null , InputOption::VALUE_NONE , 'Installs the Pest testing framework ' )
4648 ->addOption ('phpunit ' , null , InputOption::VALUE_NONE , 'Installs the PHPUnit testing framework ' )
4749 ->addOption ('prompt-breeze ' , null , InputOption::VALUE_NONE , 'Issues a prompt to determine if Breeze should be installed (Deprecated) ' )
@@ -260,11 +262,13 @@ protected function installJetstream(string $directory, InputInterface $input, Ou
260262 $ commands = array_filter ([
261263 $ this ->findComposer ().' require laravel/jetstream ' ,
262264 trim (sprintf (
263- '" ' .PHP_BINARY .'" artisan jetstream:install %s %s %s %s ' ,
265+ '" ' .PHP_BINARY .'" artisan jetstream:install %s %s %s %s %s %s ' ,
264266 $ input ->getOption ('stack ' ),
265- $ input ->getOption ('teams ' ) ? '--teams ' : '' ,
267+ $ input ->getOption ('api ' ) ? '--api ' : '' ,
266268 $ input ->getOption ('dark ' ) ? '--dark ' : '' ,
269+ $ input ->getOption ('teams ' ) ? '--teams ' : '' ,
267270 $ input ->getOption ('pest ' ) ? '--pest ' : '' ,
271+ $ input ->getOption ('verification ' ) ? '--verification ' : '' ,
268272 )),
269273 ]);
270274
@@ -336,15 +340,19 @@ protected function promptForJetstreamOptions(InputInterface $input)
336340 collect (multiselect (
337341 label: 'Would you like any optional features? ' ,
338342 options: collect ([
339- 'teams ' => 'Team support ' ,
343+ 'api ' => 'API support ' ,
340344 'dark ' => 'Dark mode ' ,
345+ 'verification ' => 'Email verification ' ,
346+ 'teams ' => 'Team support ' ,
341347 ])->when (
342348 $ input ->getOption ('stack ' ) === 'inertia ' ,
343349 fn ($ options ) => $ options ->put ('ssr ' , 'Inertia SSR ' )
344350 )->all (),
345351 default: array_filter ([
346- $ input ->getOption ('teams ' ) ? 'teams ' : null ,
352+ $ input ->getOption ('api ' ) ? 'api ' : null ,
347353 $ input ->getOption ('dark ' ) ? 'dark ' : null ,
354+ $ input ->getOption ('teams ' ) ? 'teams ' : null ,
355+ $ input ->getOption ('verification ' ) ? 'verification ' : null ,
348356 $ input ->getOption ('stack ' ) === 'inertia ' && $ input ->getOption ('ssr ' ) ? 'ssr ' : null ,
349357 ]),
350358 ))->each (fn ($ option ) => $ input ->setOption ($ option , true ));
0 commit comments