| Conditions | 2 |
| Paths | 2 |
| Total Lines | 15 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 9 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 19 | 41 | public function boot() |
|
| 20 | { |
||
| 21 | 41 | if ($this->app->runningInConsole()) { |
|
| 22 | 41 | $this->commands([ |
|
| 23 | 41 | MakeCommand::class, |
|
| 24 | ]); |
||
| 25 | } |
||
| 26 | |||
| 27 | 41 | $configPath = $this->configPath(); |
|
| 28 | |||
| 29 | 41 | $this->publishes([ |
|
| 30 | 41 | $configPath . '/config.php' => $this->publishPath('laravel-generator-package.php'), |
|
| 31 | 41 | ], 'config'); |
|
| 32 | |||
| 33 | 41 | $this->loadMigrationsFrom(__DIR__ . '/../migrations'); |
|
| 34 | 41 | } |
|
| 72 |