Total Complexity | 2 |
Total Lines | 20 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
10 | class IdeHelperServiceProvider extends ServiceProvider implements DeferrableProvider |
||
11 | { |
||
12 | public function register(): void |
||
13 | { |
||
14 | /** @var \Illuminate\Contracts\Config\Repository $config */ |
||
15 | $config = $this->app->get('config'); |
||
16 | |||
17 | $config->set( |
||
18 | 'ide-helper.model_hooks', |
||
19 | array_merge( |
||
20 | [MergedRelationsHook::class], |
||
21 | $config->get('ide-helper.model_hooks', []) |
||
22 | ) |
||
23 | ); |
||
24 | } |
||
25 | |||
26 | public function provides(): array |
||
30 | ]; |
||
31 | } |
||
33 |