@@ -39,10 +39,11 @@ |
||
| 39 | 39 | { |
| 40 | 40 | // |
| 41 | 41 | $companyId = $this->argument('companyId'); |
| 42 | - if (is_numeric($companyId)) |
|
| 43 | - print_r(Company::with(self::withFilter())->findOrFail($companyId)->toArray()); |
|
| 44 | - else |
|
| 45 | - print_r(Company::with(self::withFilter())->select('id')->get()->toArray()); |
|
| 42 | + if (is_numeric($companyId)) { |
|
| 43 | + print_r(Company::with(self::withFilter())->findOrFail($companyId)->toArray()); |
|
| 44 | + } else { |
|
| 45 | + print_r(Company::with(self::withFilter())->select('id')->get()->toArray()); |
|
| 46 | + } |
|
| 46 | 47 | } |
| 47 | 48 | |
| 48 | 49 | private static function withFilter() |