| Total Complexity | 3 |
| Total Lines | 51 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 7 | class GhostServiceProvider extends ServiceProvider |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * Bootstrap the application services. |
||
| 11 | */ |
||
| 12 | 137 | public function boot() |
|
| 13 | { |
||
| 14 | /* |
||
| 15 | * Optional methods to load your package assets |
||
| 16 | */ |
||
| 17 | // $this->loadTranslationsFrom(__DIR__.'/../resources/lang', 'laravel-ghost'); |
||
| 18 | // $this->loadViewsFrom(__DIR__.'/../resources/views', 'laravel-ghost'); |
||
| 19 | // $this->loadMigrationsFrom(__DIR__.'/../database/migrations'); |
||
| 20 | // $this->loadRoutesFrom(__DIR__.'/routes.php'); |
||
| 21 | |||
| 22 | 137 | if ($this->app->runningInConsole()) { |
|
| 23 | 137 | $this->publishes([ |
|
| 24 | 137 | __DIR__.'/../config/ghost.php' => config_path('ghost.php'), |
|
| 25 | 137 | ], 'config'); |
|
| 26 | |||
| 27 | // Publishing the views. |
||
| 28 | /*$this->publishes([ |
||
| 29 | __DIR__.'/../resources/views' => resource_path('views/vendor/laravel-ghost'), |
||
| 30 | ], 'views');*/ |
||
| 31 | |||
| 32 | // Publishing assets. |
||
| 33 | /*$this->publishes([ |
||
| 34 | __DIR__.'/../resources/assets' => public_path('vendor/laravel-ghost'), |
||
| 35 | ], 'assets');*/ |
||
| 36 | |||
| 37 | // Publishing the translation files. |
||
| 38 | /*$this->publishes([ |
||
| 39 | __DIR__.'/../resources/lang' => resource_path('lang/vendor/laravel-ghost'), |
||
| 40 | ], 'lang');*/ |
||
| 41 | |||
| 42 | // Registering package commands. |
||
| 43 | // $this->commands([]); |
||
| 44 | } |
||
| 45 | } |
||
| 46 | |||
| 47 | /** |
||
| 48 | * Register the application services. |
||
| 49 | */ |
||
| 50 | 137 | public function register() |
|
| 58 | 137 | }); |
|
| 59 | } |
||
| 61 |