| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 4 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php namespace SOSTheBlack\Moip\Commands; |
||
| 35 | public function fire() |
||
| 36 | { |
||
| 37 | $this->comment('running seeds sostheblack/moip'); |
||
| 38 | if (Moip::all()->count() === 0) { |
||
| 39 | Moip::create([]); |
||
| 40 | $this->line('<info>Seeded: </info>MoipSeeder'); |
||
| 41 | } |
||
| 42 | $this->call('db:seed', ['--class' => 'DatabaseMoipSeeder']); |
||
| 43 | $this->comment('Seeds executados'); |
||
| 44 | } |
||
| 45 | } |
||
| 46 |