| Total Complexity | 4 | 
| Total Lines | 50 | 
| Duplicated Lines | 0 % | 
| Changes | 2 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php  | 
            ||
| 8 | class Provider extends ServiceProvider  | 
            ||
| 9 | { | 
            ||
| 10 | /**  | 
            ||
| 11 | * Bootstrap the application services.  | 
            ||
| 12 | *  | 
            ||
| 13 | * @return void  | 
            ||
| 14 | */  | 
            ||
| 15 | public function boot()  | 
            ||
| 16 |     { | 
            ||
| 17 | $this->publishes([  | 
            ||
| 18 |             __DIR__ . '/Config/menu.php' => config_path('menu.php'), | 
            ||
| 19 |             __DIR__ . '/Resources/views' => base_path('resources/views/vendor/spinzar/menu'), | 
            ||
| 20 | ], 'menu');  | 
            ||
| 21 | |||
| 22 |         $this->app->singleton('menu', function ($app) { | 
            ||
| 23 | return new Menu($app['view'], $app['config']);  | 
            ||
| 24 | });  | 
            ||
| 25 | |||
| 26 |         if (file_exists($file = app_path('Support/menus.php'))) { | 
            ||
| 27 | require_once($file);  | 
            ||
| 28 | }  | 
            ||
| 29 | }  | 
            ||
| 30 | |||
| 31 | /**  | 
            ||
| 32 | * Register the application services.  | 
            ||
| 33 | *  | 
            ||
| 34 | * @return void  | 
            ||
| 35 | */  | 
            ||
| 36 | public function register()  | 
            ||
| 37 |     { | 
            ||
| 38 | $this->registerHtmlPackage();  | 
            ||
| 39 | |||
| 40 | $this->mergeConfigFrom(__DIR__ . '/Config/menu.php', 'menu');  | 
            ||
| 41 | |||
| 42 | $this->loadViewsFrom(__DIR__ . '/Resources/views', 'menu');  | 
            ||
| 43 | }  | 
            ||
| 44 | |||
| 45 | /**  | 
            ||
| 46 | * Register "iluminate/html" package.  | 
            ||
| 47 | */  | 
            ||
| 48 | private function registerHtmlPackage()  | 
            ||
| 58 | }  | 
            ||
| 59 | }  | 
            ||
| 60 |