1 | <?php |
||
8 | class QueryBuilderServiceProvider extends ServiceProvider implements DeferrableProvider |
||
9 | { |
||
10 | public function boot() |
||
11 | { |
||
12 | if ($this->app->runningInConsole() && function_exists('config_path')) { |
||
13 | $this->publishes([ |
||
14 | __DIR__.'/../config/query-builder.php' => config_path('query-builder.php'), |
||
15 | ], 'config'); |
||
16 | } |
||
17 | |||
18 | $this->mergeConfigFrom(__DIR__.'/../config/query-builder.php', 'query-builder'); |
||
19 | } |
||
20 | |||
21 | public function register() |
||
27 | |||
28 | public function provides() |
||
34 | } |
||
35 |