@@ -44,6 +44,9 @@ discard block |
||
| 44 | 44 | $this->save($content, "./App/Models/{$name}.php", "{$name} model"); |
| 45 | 45 | } |
| 46 | 46 | |
| 47 | + /** |
|
| 48 | + * @param string $arg |
|
| 49 | + */ |
|
| 47 | 50 | protected function getAsArrayFields($arg, $isOption = true) |
| 48 | 51 | { |
| 49 | 52 | $arg = ($isOption) ? $this->option($arg) : $this->argument($arg); |
@@ -78,6 +81,10 @@ discard block |
||
| 78 | 81 | return implode(PHP_EOL, $relations); |
| 79 | 82 | } |
| 80 | 83 | |
| 84 | + /** |
|
| 85 | + * @param string $type |
|
| 86 | + * @param string $option |
|
| 87 | + */ |
|
| 81 | 88 | protected function getRelationsByType($type, $option, $withTimestamps = false) |
| 82 | 89 | { |
| 83 | 90 | $relations = []; |