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