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