| Conditions | 3 |
| Paths | 3 |
| Total Lines | 15 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 38 | public function handle() |
||
| 39 | { |
||
| 40 | if (config('website.publish_migrations', true)) { |
||
| 41 | $path = config('website.migration_publish_path', 'database/migrations/website'); |
||
| 42 | |||
| 43 | if (file_exists($path)) { |
||
| 44 | $this->call('migrate:reset', [ |
||
| 45 | '--path' => $path, |
||
| 46 | '--force' => $this->option('force'), |
||
| 47 | ]); |
||
| 48 | } else { |
||
| 49 | $this->warn('No migrations found! Consider publish them first: <fg=green>php artisan vendor:publish --tag=website-migrations</>'); |
||
| 50 | } |
||
| 51 | } else { |
||
| 52 | $this->info('Please turn on publish_migrations option in config/website'); |
||
| 53 | } |
||
| 56 |