| Conditions | 4 |
| Paths | 6 |
| Total Lines | 18 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 36 | public function fire() |
||
| 37 | { |
||
| 38 | $files = $this->laravel->make('files'); |
||
| 39 | |||
| 40 | foreach ($files->files($this->getPackageMigrationsPath()) as $file) { |
||
| 41 | if (!file_exists($destination = $this->makeMigrationPath($file))) { |
||
| 42 | $files->copy($file, $destination); |
||
| 43 | |||
| 44 | $this->info("Migration created: $destination"); |
||
| 45 | } |
||
| 46 | } |
||
| 47 | |||
| 48 | if (isLaravel5()) { |
||
| 49 | $this->call('optimize'); |
||
| 50 | } else { |
||
| 51 | $this->call('dump-autoload'); |
||
| 52 | } |
||
| 53 | } |
||
| 54 | |||
| 95 |