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