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