| Conditions | 3 |
| Paths | 3 |
| Total Lines | 17 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 12 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 17 | public function boot(): void |
||
| 18 | { |
||
| 19 | if (!$this->app->runningInConsole()) { |
||
| 20 | return; |
||
| 21 | } |
||
| 22 | |||
| 23 | if (function_exists('config_path')) { |
||
| 24 | $this->publishes([ |
||
| 25 | dirname(__DIR__) . '/config/config.php' => config_path('bavix-settings.php'), |
||
| 26 | ], 'laravel-settings-config'); |
||
| 27 | } |
||
| 28 | |||
| 29 | $this->publishes([ |
||
| 30 | dirname(__DIR__) . '/database/' => database_path('migrations'), |
||
| 31 | ], 'laravel-settings-migrations'); |
||
| 32 | |||
| 33 | $this->loadMigrationsFrom([__DIR__ . '/../database']); |
||
| 34 | } |
||
| 52 |