Conditions | 2 |
Paths | 2 |
Total Lines | 13 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
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 | } |
||
60 |