@@ -289,8 +289,6 @@ public function loadDynamicVariables(CommandData &$commandData)
289
289
$ commandData ->addDynamicVariable ('$MODEL_NAME_PLURAL_SNAKE$ ' , $ this ->mSnakePlural );
290
290
$ commandData ->addDynamicVariable ('$MODEL_NAME_DASHED$ ' , $ this ->mDashed );
291
291
$ commandData ->addDynamicVariable ('$MODEL_NAME_PLURAL_DASHED$ ' , $ this ->mDashedPlural );
292
- $ commandData ->addDynamicVariable ('$MODEL_NAME_SLASH$ ' , $ this ->mSlash );
293
- $ commandData ->addDynamicVariable ('$MODEL_NAME_PLURAL_SLASH$ ' , $ this ->mSlashPlural );
294
292
$ commandData ->addDynamicVariable ('$MODEL_NAME_HUMAN$ ' , $ this ->mHuman );
295
293
$ commandData ->addDynamicVariable ('$MODEL_NAME_PLURAL_HUMAN$ ' , $ this ->mHumanPlural );
296
294
$ commandData ->addDynamicVariable ('$FILES$ ' , '' );
@@ -368,10 +366,8 @@ public function prepareModelNames()
368
366
$ this ->mCamelPlural = Str::camel ($ this ->mPlural );
369
367
$ this ->mSnake = Str::snake ($ this ->mName );
370
368
$ this ->mSnakePlural = Str::snake ($ this ->mPlural );
371
- $ this ->mDashed = str_replace ('_ ' , '- ' , Str::snake ($ this ->mSnake ));
372
- $ this ->mDashedPlural = str_replace ('_ ' , '- ' , Str::snake ($ this ->mSnakePlural ));
373
- $ this ->mSlash = str_replace ('_ ' , '/ ' , Str::snake ($ this ->mSnake ));
374
- $ this ->mSlashPlural = str_replace ('_ ' , '/ ' , Str::snake ($ this ->mSnakePlural ));
369
+ $ this ->mDashed = Str::kebab ($ this ->mName );
370
+ $ this ->mDashedPlural = Str::kebab ($ this ->mPlural );
375
371
$ this ->mHuman = Str::title (str_replace ('_ ' , ' ' , Str::snake ($ this ->mSnake )));
376
372
$ this ->mHumanPlural = Str::title (str_replace ('_ ' , ' ' , Str::snake ($ this ->mSnakePlural )));
377
373
}
0 commit comments