@@ -57,6 +57,7 @@ protected function configure()
57
57
->addOption ('livewire ' , null , InputOption::VALUE_NONE , 'Install the Livewire Starter Kit ' )
58
58
->addOption ('livewire-class-components ' , null , InputOption::VALUE_NONE , 'Generate stand-alone Livewire class components ' )
59
59
->addOption ('workos ' , null , InputOption::VALUE_NONE , 'Use WorkOS for authentication ' )
60
+ ->addOption ('no-authentication ' , null , InputOption::VALUE_NONE , 'Do not generate authentication scaffolding ' )
60
61
->addOption ('pest ' , null , InputOption::VALUE_NONE , 'Install the Pest testing framework ' )
61
62
->addOption ('phpunit ' , null , InputOption::VALUE_NONE , 'Install the PHPUnit testing framework ' )
62
63
->addOption ('npm ' , null , InputOption::VALUE_NONE , 'Install and build NPM dependencies ' )
@@ -136,16 +137,20 @@ protected function interact(InputInterface $input, OutputInterface $output)
136
137
options: [
137
138
'laravel ' => "Laravel's built-in authentication " ,
138
139
'workos ' => 'WorkOS (Requires WorkOS account) ' ,
140
+ 'none ' => 'No authentication scaffolding ' ,
139
141
],
140
142
default: 'laravel ' ,
141
143
)) {
142
144
'laravel ' => $ input ->setOption ('workos ' , false ),
143
145
'workos ' => $ input ->setOption ('workos ' , true ),
146
+ 'none ' => $ input ->setOption ('no-authentication ' , true ),
144
147
default => null ,
145
148
};
146
149
}
147
150
148
- if ($ input ->getOption ('livewire ' ) && ! $ input ->getOption ('workos ' )) {
151
+ if ($ input ->getOption ('livewire ' ) &&
152
+ ! $ input ->getOption ('workos ' ) &&
153
+ ! $ input ->getOption ('no-authentication ' )) {
149
154
$ input ->setOption ('livewire-class-components ' , ! confirm (
150
155
label: 'Would you like to use Laravel Volt? ' ,
151
156
default: true ,
@@ -764,6 +769,15 @@ protected function generateAppUrl($name, $directory)
764
769
*/
765
770
protected function getStarterKit (InputInterface $ input ): ?string
766
771
{
772
+ if ($ input ->getOption ('no-authentication ' )) {
773
+ return match (true ) {
774
+ $ input ->getOption ('react ' ) => 'laravel/blank-react-starter-kit ' ,
775
+ $ input ->getOption ('vue ' ) => 'laravel/blank-vue-starter-kit ' ,
776
+ $ input ->getOption ('livewire ' ) => 'laravel/blank-livewire-starter-kit ' ,
777
+ default => $ input ->getOption ('using ' ),
778
+ };
779
+ }
780
+
767
781
return match (true ) {
768
782
$ input ->getOption ('react ' ) => 'laravel/react-starter-kit ' ,
769
783
$ input ->getOption ('vue ' ) => 'laravel/vue-starter-kit ' ,
0 commit comments