@@ -27,7 +27,7 @@ class CreateResourceCommand extends Command
2727 {--models-per-page=25 : The amount of models per page for index pages.}
2828 {--lang-file-name= : The languages file name to put the labels in.}
2929 {--with-form-request : This will extract the validation into a request form class.}
30- {--table= : The name of the table.}
30+ {--table-name = : The name of the table.}
3131 {--fillable= : The exact string to put in the fillable property of the model.}
3232 {--primary-key=id : The name of the primary key.}
3333 {--with-soft-delete : Enables softdelete future should be enable in the model.}
@@ -236,7 +236,7 @@ protected function createModel($input)
236236 $ this ->call ('create:model ' ,
237237 [
238238 'model-name ' => $ input ->modelName ,
239- '--table ' => $ input ->table ,
239+ '--table-name ' => $ input ->table ,
240240 '--fillable ' => $ input ->fillable ,
241241 '--relationships ' => $ input ->relationships ,
242242 '--primary-key ' => $ input ->primaryKey ,
@@ -274,7 +274,7 @@ protected function getCommandInput()
274274 $ withoutMigration = $ this ->option ('without-migration ' );
275275 $ force = $ this ->option ('force ' );
276276 $ modelDirectory = trim ($ this ->option ('model-directory ' ));
277- $ table = trim ($ this ->option ('table ' )) ?: $ modelNamePlural ;
277+ $ table = trim ($ this ->option ('table-name ' )) ?: $ modelNamePlural ;
278278 $ fillable = trim ($ this ->option ('fillable ' ));
279279 $ primaryKey = trim ($ this ->option ('primary-key ' ));
280280 $ relationships = trim ($ this ->option ('relationships ' ));
0 commit comments