| @@ 109-117 (lines=9) @@ | ||
| 106 | * |
|
| 107 | * @return void |
|
| 108 | */ |
|
| 109 | protected function createMigration() |
|
| 110 | { |
|
| 111 | $table = Str::plural(Str::snake(class_basename($this->argument('name')))); |
|
| 112 | ||
| 113 | $this->call('cray:migration', [ |
|
| 114 | 'name' => "create_{$table}_table", |
|
| 115 | '--create' => $table, |
|
| 116 | ]); |
|
| 117 | } |
|
| 118 | ||
| 119 | /** |
|
| 120 | * Create a controller for the model. |
|
| @@ 83-91 (lines=9) @@ | ||
| 80 | * |
|
| 81 | * @return void |
|
| 82 | */ |
|
| 83 | protected function createMigration() |
|
| 84 | { |
|
| 85 | $table = Str::plural(Str::snake(class_basename($this->argument('name')))); |
|
| 86 | ||
| 87 | $this->call('cray:migration', [ |
|
| 88 | 'name' => "create_{$table}_table", |
|
| 89 | '--create' => $table, |
|
| 90 | ]); |
|
| 91 | } |
|
| 92 | ||
| 93 | /** |
|
| 94 | * Create a controller for the model. |
|