@@ -48,19 +48,19 @@ public function handle()
48
48
// $this->input->setOption('controller', true);
49
49
// $this->input->setOption('resource', true);
50
50
// }
51
- //
51
+ //
52
52
// if ($this->option('factory')) {
53
53
// $this->createFactory();
54
54
// }
55
- //
55
+ //
56
56
// if ($this->option('migration')) {
57
57
// $this->createMigration();
58
58
// }
59
- //
59
+ //
60
60
// if ($this->option('seed')) {
61
61
// $this->createSeeder();
62
62
// }
63
- //
63
+ //
64
64
// if ($this->option('controller') || $this->option('resource') || $this->option('api')) {
65
65
// $this->createController();
66
66
// }
@@ -74,7 +74,7 @@ public function handle()
74
74
// protected function createFactory()
75
75
// {
76
76
// $factory = Str::studly(class_basename($this->argument('name')));
77
- //
77
+ //
78
78
// $this->call('make:factory', [
79
79
// 'name' => "{$factory}Factory",
80
80
// '--model' => $this->qualifyClass($this->getNameInput()),
@@ -89,11 +89,11 @@ public function handle()
89
89
// protected function createMigration()
90
90
// {
91
91
// $table = Str::snake(Str::pluralStudly(class_basename($this->argument('name'))));
92
- //
93
- // // if ($this->option('pivot')) {
94
- // // $table = Str::singular($table);
95
- // // }
96
- //
92
+ //
93
+ // // if ($this->option('pivot')) {
94
+ // // $table = Str::singular($table);
95
+ // // }
96
+ //
97
97
// $this->call('make:migration', [
98
98
// 'name' => "create_{$table}_table",
99
99
// '--create' => $table,
@@ -108,7 +108,7 @@ public function handle()
108
108
// protected function createSeeder()
109
109
// {
110
110
// $seeder = Str::studly(class_basename($this->argument('name')));
111
- //
111
+ //
112
112
// $this->call('make:seed', [
113
113
// 'name' => "{$seeder}Seeder",
114
114
// ]);
@@ -122,9 +122,9 @@ public function handle()
122
122
// protected function createController()
123
123
// {
124
124
// $controller = Str::studly(class_basename($this->argument('name')));
125
- //
125
+ //
126
126
// $modelName = $this->qualifyClass($this->getNameInput());
127
- //
127
+ //
128
128
// $this->call('make:controller', array_filter([
129
129
// 'name' => "{$controller}Controller",
130
130
// '--model' => $this->option('resource') || $this->option('api') ? $modelName : null,
@@ -156,7 +156,7 @@ protected function resolveStubPath($stub)
156
156
// return file_exists($customPath = $this->laravel->basePath(trim($stub, '/')))
157
157
// ? $customPath
158
158
// : __DIR__.$stub;
159
- return __DIR__ . $ stub ;
159
+ return __DIR__ . $ stub ;
160
160
}
161
161
162
162
/**
@@ -167,15 +167,15 @@ protected function resolveStubPath($stub)
167
167
protected function getOptions ()
168
168
{
169
169
return [
170
- // ['all', 'a', InputOption::VALUE_NONE, 'Generate a migration, seeder, factory, and resource controller for the model'],
171
- // ['controller', 'c', InputOption::VALUE_NONE, 'Create a new controller for the model'],
172
- // ['factory', 'f', InputOption::VALUE_NONE, 'Create a new factory for the model'],
170
+ // ['all', 'a', InputOption::VALUE_NONE, 'Generate a migration, seeder, factory, and resource controller for the model'],
171
+ // ['controller', 'c', InputOption::VALUE_NONE, 'Create a new controller for the model'],
172
+ // ['factory', 'f', InputOption::VALUE_NONE, 'Create a new factory for the model'],
173
173
['force ' , null , InputOption::VALUE_NONE , 'Create the class even if the model already exists ' ],
174
- // ['migration', 'm', InputOption::VALUE_NONE, 'Create a new migration file for the model'],
175
- // ['seed', 's', InputOption::VALUE_NONE, 'Create a new seeder file for the model'],
176
- // ['pivot', 'p', InputOption::VALUE_NONE, 'Indicates if the generated model should be a custom intermediate table model'],
177
- // ['resource', 'r', InputOption::VALUE_NONE, 'Indicates if the generated controller should be a resource controller'],
178
- // ['api', null, InputOption::VALUE_NONE, 'Indicates if the generated controller should be an API controller'],
174
+ // ['migration', 'm', InputOption::VALUE_NONE, 'Create a new migration file for the model'],
175
+ // ['seed', 's', InputOption::VALUE_NONE, 'Create a new seeder file for the model'],
176
+ // ['pivot', 'p', InputOption::VALUE_NONE, 'Indicates if the generated model should be a custom intermediate table model'],
177
+ // ['resource', 'r', InputOption::VALUE_NONE, 'Indicates if the generated controller should be a resource controller'],
178
+ // ['api', null, InputOption::VALUE_NONE, 'Indicates if the generated controller should be an API controller'],
179
179
];
180
180
}
181
181
}
0 commit comments