@@ -391,8 +391,9 @@ protected function promptForBreezeOptions(InputInterface $input)
391391 $ input ->setOption ('stack ' , select (
392392 label: 'Which Breeze stack would you like to install? ' ,
393393 options: [
394- 'blade ' => 'Blade ' ,
395- 'livewire ' => 'Livewire with Alpine ' ,
394+ 'blade ' => 'Blade with Alpine ' ,
395+ 'livewire ' => 'Livewire (Volt Class API) with Alpine ' ,
396+ 'livewire-functional ' => 'Livewire (Volt Functional API) with Alpine ' ,
396397 'react ' => 'React with Inertia ' ,
397398 'vue ' => 'Vue with Inertia ' ,
398399 'api ' => 'API only ' ,
@@ -414,7 +415,7 @@ protected function promptForBreezeOptions(InputInterface $input)
414415 $ input ->getOption ('typescript ' ) ? 'typescript ' : null ,
415416 ]),
416417 ))->each (fn ($ option ) => $ input ->setOption ($ option , true ));
417- } elseif (in_array ($ input ->getOption ('stack ' ), ['blade ' , 'livewire ' ]) && ! $ input ->getOption ('dark ' )) {
418+ } elseif (in_array ($ input ->getOption ('stack ' ), ['blade ' , 'livewire ' , ' livewire-functional ' ]) && ! $ input ->getOption ('dark ' )) {
418419 $ input ->setOption ('dark ' , confirm (
419420 label: 'Would you like dark mode support? ' ,
420421 default: false ,
@@ -464,7 +465,7 @@ protected function promptForJetstreamOptions(InputInterface $input)
464465 protected function validateStackOption (InputInterface $ input )
465466 {
466467 if ($ input ->getOption ('breeze ' )) {
467- if (! in_array ($ input ->getOption ('stack ' ), $ stacks = ['blade ' , 'livewire ' , 'react ' , 'vue ' , 'api ' ])) {
468+ if (! in_array ($ input ->getOption ('stack ' ), $ stacks = ['blade ' , 'livewire ' , 'livewire-functional ' , ' react ' , 'vue ' , 'api ' ])) {
468469 throw new \InvalidArgumentException ("Invalid Breeze stack [ {$ input ->getOption ('stack ' )}]. Valid options are: " .implode (', ' , $ stacks ).'. ' );
469470 }
470471
0 commit comments