| Conditions | 2 |
| Paths | 2 |
| Total Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 30 | public function handle(): void |
||
| 31 | { |
||
| 32 | if (file_exists($path = 'database/migrations/cortex/contacts')) { |
||
| 33 | $this->call('migrate:reset', [ |
||
| 34 | '--step' => true, |
||
| 35 | '--path' => $path, |
||
| 36 | '--force' => $this->option('force'), |
||
| 37 | ]); |
||
| 38 | } else { |
||
| 39 | $this->warn('No migrations found! Consider publish them first: <fg=green>php artisan cortex:publish:contacts</>'); |
||
| 40 | } |
||
| 41 | |||
| 42 | parent::handle(); |
||
| 43 | } |
||
| 44 | } |
||
| 45 |