Conditions | 3 |
Paths | 2 |
Total Lines | 16 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 12 |
Changes | 0 |
1 | <?php |
||
29 | public function handle() |
||
30 | { |
||
31 | if (!$this->confirmToProceed()) { |
||
32 | return; |
||
33 | } |
||
34 | |||
35 | $this->resolver->setDefaultConnection($this->getDatabase()); |
||
36 | |||
37 | Model::unguarded(function () { |
||
38 | foreach ($this->getSeeders() as $seeder) { |
||
39 | $seeder = $this->laravel->make($seeder); |
||
40 | $seeder->__invoke(); |
||
41 | } |
||
42 | }); |
||
43 | |||
44 | $this->info('Database seeding completed successfully.'); |
||
45 | } |
||
54 |