@@ -289,8 +289,6 @@ public function loadDynamicVariables(CommandData &$commandData)
289289 $ commandData ->addDynamicVariable ('$MODEL_NAME_PLURAL_SNAKE$ ' , $ this ->mSnakePlural );
290290 $ commandData ->addDynamicVariable ('$MODEL_NAME_DASHED$ ' , $ this ->mDashed );
291291 $ 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 );
294292 $ commandData ->addDynamicVariable ('$MODEL_NAME_HUMAN$ ' , $ this ->mHuman );
295293 $ commandData ->addDynamicVariable ('$MODEL_NAME_PLURAL_HUMAN$ ' , $ this ->mHumanPlural );
296294 $ commandData ->addDynamicVariable ('$FILES$ ' , '' );
@@ -368,10 +366,8 @@ public function prepareModelNames()
368366 $ this ->mCamelPlural = Str::camel ($ this ->mPlural );
369367 $ this ->mSnake = Str::snake ($ this ->mName );
370368 $ 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 );
375371 $ this ->mHuman = Str::title (str_replace ('_ ' , ' ' , Str::snake ($ this ->mSnake )));
376372 $ this ->mHumanPlural = Str::title (str_replace ('_ ' , ' ' , Str::snake ($ this ->mSnakePlural )));
377373 }
0 commit comments