@@ -180,7 +180,6 @@ protected function handle(): int
180180 'message ' => 'Select a view engine ' ,
181181 'default ' => 0 ,
182182 'choices ' => [
183- ['title ' => 'Default ' , 'value ' => 'blade only ' ],
184183 ['title ' => 'Blade + Alpine ' , 'value ' => 'tailwind ' ],
185184 ['title ' => 'React JS ' , 'value ' => 'react ' ],
186185 ['title ' => 'Vue JS ' , 'value ' => 'vue ' ],
@@ -203,7 +202,7 @@ protected function handle(): int
203202
204203 $ extraCommands = ["cd \"$ directory \"" ];
205204
206- if (isset ($ extraOptions ['view ' ]) && $ extraOptions [ ' view ' ] !== ' blade only ' ) {
205+ if (isset ($ extraOptions ['view ' ])) {
207206 $ extraCommands [] = 'php leaf view:install -- ' . $ extraOptions ['view ' ];
208207 }
209208
@@ -227,7 +226,7 @@ protected function handle(): int
227226 \Leaf \FS \File::write ("$ directory/.env " , function ($ content ) use ($ directory ) {
228227 return str_replace (
229228 ['LEAF_DB_NAME ' , 'LEAF_DB_USERNAME ' ],
230- [basename ($ directory ), 'root ' ],
229+ [str_replace ( ' - ' , ' _ ' , basename ($ directory) ), 'root ' ],
231230 $ content
232231 );
233232 });
0 commit comments