@@ -134,7 +134,7 @@ protected function createResourceFileFromString(ScaffoldInputBase $input)
134
134
*/
135
135
protected function createLanguage (ScaffoldInputBase $ input )
136
136
{
137
- if (!$ this -> option ( ' without-languages ' ) ) {
137
+ if (!$ input -> withoutLanguages ) {
138
138
$ this ->call (
139
139
'create:language ' ,
140
140
[
@@ -159,7 +159,7 @@ protected function createLanguage(ScaffoldInputBase $input)
159
159
*/
160
160
protected function createModel (ScaffoldInputBase $ input )
161
161
{
162
- if (!$ this -> option ( ' without-model ' ) ) {
162
+ if (!$ input -> withoutModel ) {
163
163
$ this ->call (
164
164
'create:model ' ,
165
165
[
@@ -196,7 +196,7 @@ protected function getCommandInput()
196
196
$ input ->perPage = intval ($ this ->option ('models-per-page ' ));
197
197
$ input ->resourceFile = trim ($ this ->option ('resource-file ' )) ?: Helpers::makeJsonFileName ($ input ->modelName );
198
198
$ input ->fields = trim ($ this ->option ('fields ' ));
199
- $ input ->formRequest = $ this ->option ('with-form-request ' );
199
+ $ input ->withFormRequest = $ this ->option ('with-form-request ' );
200
200
$ input ->controllerDirectory = $ this ->option ('controller-directory ' );
201
201
$ input ->controllerExtends = $ this ->option ('controller-extends ' ) ?: null ;
202
202
$ input ->modelExtends = $ this ->option ('model-extends ' ) ?: null ;
@@ -206,6 +206,11 @@ protected function getCommandInput()
206
206
$ input ->primaryKey = $ this ->option ('primary-key ' );
207
207
$ input ->withSoftDelete = $ this ->option ('with-soft-delete ' );
208
208
$ input ->withoutTimeStamps = $ this ->option ('without-timestamps ' );
209
+ $ input ->withoutLanguages = $ this ->option ('without-languages ' );
210
+ $ input ->withoutModel = $ this ->option ('without-model ' );
211
+ $ input ->withoutController = $ this ->option ('without-controller ' );
212
+ $ input ->withoutFormRequest = $ this ->option ('without-form-request ' );
213
+ $ input ->withoutViews = $ this ->option ('without-views ' );
209
214
$ input ->migrationClass = $ this ->option ('migration-class-name ' );
210
215
$ input ->connectionName = $ this ->option ('connection-name ' );
211
216
$ input ->engineName = $ this ->option ('engine-name ' );
0 commit comments