@@ -41,11 +41,11 @@ public function handle()
41
41
}
42
42
43
43
if ($ this ->option ('all ' )) {
44
- $ this ->input ->setOption ('factory ' , true );
45
- $ this ->input ->setOption ('seed ' , true );
46
- $ this ->input ->setOption ('migration ' , true );
47
- $ this ->input ->setOption ('controller ' , true );
48
- $ this ->input ->setOption ('resource ' , true );
44
+ $ this ->input ->setOption ('factory ' , true );
45
+ $ this ->input ->setOption ('seed ' , true );
46
+ $ this ->input ->setOption ('migration ' , true );
47
+ $ this ->input ->setOption ('controller ' , true );
48
+ $ this ->input ->setOption ('resource ' , true );
49
49
}
50
50
51
51
if ($ this ->option ('factory ' )) {
@@ -141,7 +141,7 @@ protected function getStub()
141
141
// return $this->option('pivot')
142
142
// ? $this->resolveStubPath('/stubs/model.pivot.stub')
143
143
// : $this->resolveStubPath('/stubs/baum.stub');
144
- return $ this ->resolveStubPath ('/stubs/baum.stub ' );
144
+ return $ this ->resolveStubPath ('/stubs/baum.stub ' );
145
145
}
146
146
147
147
/**
@@ -165,13 +165,13 @@ protected function resolveStubPath($stub)
165
165
protected function getOptions ()
166
166
{
167
167
return [
168
- ['all ' , 'a ' , InputOption::VALUE_NONE , 'Generate a migration, seeder, factory, and resource controller for the model ' ],
168
+ ['all ' , 'a ' , InputOption::VALUE_NONE , 'Generate a migration, seeder, factory, and resource controller for the model ' ],
169
169
['controller ' , 'c ' , InputOption::VALUE_NONE , 'Create a new controller for the model ' ],
170
170
['factory ' , 'f ' , InputOption::VALUE_NONE , 'Create a new factory for the model ' ],
171
171
['force ' , null , InputOption::VALUE_NONE , 'Create the class even if the model already exists ' ],
172
172
['migration ' , 'm ' , InputOption::VALUE_NONE , 'Create a new migration file for the model ' ],
173
173
['seed ' , 's ' , InputOption::VALUE_NONE , 'Create a new seeder file for the model ' ],
174
- // ['pivot', 'p', InputOption::VALUE_NONE, 'Indicates if the generated model should be a custom intermediate table model'],
174
+ // ['pivot', 'p', InputOption::VALUE_NONE, 'Indicates if the generated model should be a custom intermediate table model'],
175
175
['resource ' , 'r ' , InputOption::VALUE_NONE , 'Indicates if the generated controller should be a resource controller ' ],
176
176
['api ' , null , InputOption::VALUE_NONE , 'Indicates if the generated controller should be an API controller ' ],
177
177
];
0 commit comments