Conditions | 3 |
Paths | 3 |
Total Lines | 19 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
34 | public function handle() |
||
35 | { |
||
36 | if (! $this->confirmToProceed()) { |
||
37 | return; |
||
38 | } |
||
39 | |||
40 | $this->info('Dropping all tables...'); |
||
41 | $this->dropAllTables(); |
||
42 | |||
43 | $this->info('Running migrations...'); |
||
44 | $this->call('migrate', ['--force' => true]); |
||
45 | |||
46 | if ($this->hasOption('seed')) { |
||
47 | $this->info('Running seeders...'); |
||
48 | $this->call('db:seed', ['--force' => true]); |
||
49 | } |
||
50 | |||
51 | $this->comment('All done!'); |
||
52 | } |
||
53 | |||
69 |