| Conditions | 1 |
| Paths | 1 |
| Total Lines | 17 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | public function boot() |
||
| 14 | { |
||
| 15 | $this->loadViewsFrom(__DIR__.'/../resources/views', 'googletagmanager'); |
||
| 16 | |||
| 17 | $this->publishes([ |
||
| 18 | __DIR__.'/../resources/config/config.php' => config_path('googletagmanager.php'), |
||
| 19 | ], 'config'); |
||
| 20 | |||
| 21 | $this->publishes([ |
||
| 22 | __DIR__.'/../resources/views' => base_path('resources/views/vendor/googletagmanager'), |
||
| 23 | ], 'views'); |
||
| 24 | |||
| 25 | $this->app['view']->creator( |
||
| 26 | ['googletagmanager::head', 'googletagmanager::body', 'googletagmanager::script'], |
||
| 27 | 'Spatie\GoogleTagManager\ScriptViewCreator' |
||
| 28 | ); |
||
| 29 | } |
||
| 30 | |||
| 52 |