Conditions | 2 |
Paths | 2 |
Total Lines | 12 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
14 | 7 | public function boot() |
|
15 | { |
||
16 | 7 | $this->publishes([ |
|
17 | 7 | __DIR__.'/../../config/database-config.php' => config_path('database-config.php'), |
|
18 | 7 | ], 'config'); |
|
19 | |||
20 | 7 | $this->loadMigrationsFrom(__DIR__.'/../../database/migrations'); |
|
21 | |||
22 | 7 | if ($this->app->runningInConsole()) { |
|
23 | 7 | $this->commands([ |
|
24 | 7 | AddDatabaseConfigCommand::class, |
|
25 | DeleteDatabaseConfigCommand::class, |
||
26 | ]); |
||
40 |