| Conditions | 4 |
| Paths | 3 |
| Total Lines | 16 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 28 | public function handle() |
||
| 29 | { |
||
| 30 | Artisan::call('migrate:fresh'); |
||
| 31 | $this->line(Artisan::output()); |
||
| 32 | |||
| 33 | $migrationDirs = [ |
||
| 34 | 'laragenDir' => 'laragen/database/migrations', |
||
| 35 | 'laravelDir' => 'database/migrations/laragen' |
||
| 36 | ]; |
||
| 37 | |||
| 38 | foreach ($migrationDirs as $dir) { |
||
| 39 | if(is_dir(base_path($dir)) && count(glob( base_path($dir) . '*', GLOB_MARK ))){ |
||
|
|
|||
| 40 | Artisan::call('migrate', [ |
||
| 41 | '--path' => $dir |
||
| 42 | ]); |
||
| 43 | $this->line(Artisan::output()); |
||
| 44 | } |
||
| 48 |