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