| 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 |
||
| 18 | 67 | public function boot() |
|
| 19 | { |
||
| 20 | 67 | if ($this->app->runningInConsole()) { |
|
| 21 | 67 | $this->commands([ |
|
| 22 | 67 | MakeCommand::class, |
|
| 23 | ]); |
||
| 24 | } |
||
| 25 | |||
| 26 | 67 | $configPath = $this->configPath(); |
|
| 27 | |||
| 28 | 67 | $this->publishes([ |
|
| 29 | 67 | $configPath . '/config.php' => $this->publishPath('laravel-generator-package.php'), |
|
| 30 | 67 | ], 'config'); |
|
| 31 | |||
| 32 | 67 | $this->loadMigrationsFrom(__DIR__ . '/../database/migrations'); |
|
| 33 | 67 | } |
|
| 68 |