@@ -51,6 +51,7 @@ protected function configure()
51
51
->addOption ('react ' , null , InputOption::VALUE_NONE , 'Install the React Starter Kit ' )
52
52
->addOption ('vue ' , null , InputOption::VALUE_NONE , 'Install the Vue Starter Kit ' )
53
53
->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 ' )
54
55
->addOption ('workos ' , null , InputOption::VALUE_NONE , 'Use WorkOS for authentication ' )
55
56
->addOption ('pest ' , null , InputOption::VALUE_NONE , 'Install the Pest testing framework ' )
56
57
->addOption ('phpunit ' , null , InputOption::VALUE_NONE , 'Install the PHPUnit testing framework ' )
@@ -138,6 +139,13 @@ protected function interact(InputInterface $input, OutputInterface $output)
138
139
default => null ,
139
140
};
140
141
}
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
+ }
141
149
}
142
150
143
151
if ($ this ->usingStarterKit ($ input )) {
@@ -228,6 +236,10 @@ protected function execute(InputInterface $input, OutputInterface $output): int
228
236
if ($ stackSlug ) {
229
237
$ createProjectCommand = $ composer ." create-project laravel/ $ stackSlug-starter-kit \"$ directory \" --stability=dev " ;
230
238
239
+ if ($ input ->getOption ('livewire-class-components ' )) {
240
+ $ createProjectCommand = str_replace (" laravel/ {$ stackSlug }-starter-kit " , " laravel/ {$ stackSlug }-starter-kit:dev-components " , $ createProjectCommand );
241
+ }
242
+
231
243
if ($ input ->getOption ('workos ' )) {
232
244
$ createProjectCommand = str_replace (" laravel/ {$ stackSlug }-starter-kit " , " laravel/ {$ stackSlug }-starter-kit:dev-workos " , $ createProjectCommand );
233
245
}
0 commit comments