Conditions | 2 |
Paths | 2 |
Total Lines | 13 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
19 | 9 | public function boot() |
|
20 | { |
||
21 | // determine where to publish the configuration, if requested |
||
22 | 9 | $this->publishes([ |
|
23 | 9 | __DIR__ . '/../../config/query_filters.php' => config_path('query_filters.php'), |
|
24 | 9 | ], 'query_filters_config'); |
|
25 | |||
26 | // merge the published configuration with the package default one |
||
27 | 9 | $this->mergeConfigFrom(__DIR__ . '/../../config/query_filters.php', 'query_filters'); |
|
28 | |||
29 | // register console command when running Artisan |
||
30 | 9 | if ($this->app->runningInConsole()) { |
|
31 | 9 | $this->commands(MakeQueryFiltersCommand::class); |
|
32 | 3 | } |
|
35 |