| Conditions | 2 |
| Paths | 2 |
| Total Lines | 21 |
| Code Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 15 | public function boot() |
||
| 16 | { |
||
| 17 | $this->loadViewsFrom(__DIR__.'/../resources/views', 'laravel-seo-meta-box'); |
||
| 18 | $this->loadMigrationsFrom(__DIR__.'/../database/migrations'); |
||
| 19 | |||
| 20 | if ($this->app->runningInConsole()) { |
||
| 21 | // Publishing the config. |
||
| 22 | $this->publishes([ |
||
| 23 | __DIR__.'/../config/config.php' => config_path('meta-box.php'), |
||
| 24 | ], 'metabox-config'); |
||
| 25 | |||
| 26 | // Publishing the views. |
||
| 27 | $this->publishes([ |
||
| 28 | __DIR__.'/../resources/views' => resource_path('views/vendor/laravel-seo-meta-box'), |
||
| 29 | ], 'metabox-views'); |
||
| 30 | } |
||
| 31 | |||
| 32 | Blade::include('laravel-seo-meta-box::seo', 'metabox'); |
||
| 33 | |||
| 34 | View::composer( |
||
| 35 | 'laravel-seo-meta-box::seo', MetaboxComposer::class |
||
| 36 | ); |
||
| 53 |