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