@@ -51,6 +51,7 @@ protected function configure()
5151 ->addOption ('react ' , null , InputOption::VALUE_NONE , 'Install the React Starter Kit ' )
5252 ->addOption ('vue ' , null , InputOption::VALUE_NONE , 'Install the Vue Starter Kit ' )
5353 ->addOption ('livewire ' , null , InputOption::VALUE_NONE , 'Install the Livewire Starter Kit ' )
54+ ->addOption ('livewire-class-components ' , null , InputOption::VALUE_NONE , 'Generate stand-alone Livewire class components ' )
5455 ->addOption ('workos ' , null , InputOption::VALUE_NONE , 'Use WorkOS for authentication ' )
5556 ->addOption ('pest ' , null , InputOption::VALUE_NONE , 'Install the Pest testing framework ' )
5657 ->addOption ('phpunit ' , null , InputOption::VALUE_NONE , 'Install the PHPUnit testing framework ' )
@@ -138,6 +139,13 @@ protected function interact(InputInterface $input, OutputInterface $output)
138139 default => null ,
139140 };
140141 }
142+
143+ if ($ input ->getOption ('livewire ' ) && ! $ input ->getOption ('workos ' )) {
144+ $ input ->setOption ('livewire-class-components ' , ! confirm (
145+ label: 'Would you like to use Laravel Volt? ' ,
146+ default: true ,
147+ ));
148+ }
141149 }
142150
143151 if ($ this ->usingStarterKit ($ input )) {
@@ -228,6 +236,10 @@ protected function execute(InputInterface $input, OutputInterface $output): int
228236 if ($ stackSlug ) {
229237 $ createProjectCommand = $ composer ." create-project laravel/ $ stackSlug-starter-kit \"$ directory \" --stability=dev " ;
230238
239+ if ($ input ->getOption ('livewire-class-components ' )) {
240+ $ createProjectCommand = str_replace (" laravel/ {$ stackSlug }-starter-kit " , " laravel/ {$ stackSlug }-starter-kit:dev-components " , $ createProjectCommand );
241+ }
242+
231243 if ($ input ->getOption ('workos ' )) {
232244 $ createProjectCommand = str_replace (" laravel/ {$ stackSlug }-starter-kit " , " laravel/ {$ stackSlug }-starter-kit:dev-workos " , $ createProjectCommand );
233245 }
0 commit comments