1 | <?php |
||
18 | class MenuServiceProvider extends ServiceProvider |
||
19 | { |
||
20 | /** |
||
21 | * Indicates if loading of the provider is deferred. |
||
22 | * |
||
23 | * @var bool |
||
24 | */ |
||
25 | protected $defer = false; |
||
26 | |||
27 | /** |
||
28 | * Bootstrap the application services. |
||
29 | * |
||
30 | * @return void |
||
31 | */ |
||
32 | 51 | public function boot() |
|
33 | { |
||
34 | 51 | $this->loadViewsFrom(__DIR__ . '/../views', 'menu'); |
|
35 | |||
36 | 51 | $this->publishes([ |
|
37 | 51 | __DIR__ . '/../views' => base_path('resources/views/vendor/menu'), |
|
38 | 51 | __DIR__ . '/../config/menu.php' => config_path('menu.php'), |
|
39 | 51 | ]); |
|
40 | 51 | } |
|
41 | |||
42 | /** |
||
43 | * Register the application services. |
||
44 | * |
||
45 | * @return void |
||
46 | */ |
||
47 | 51 | public function register() |
|
56 | |||
57 | 51 | protected function registerSingleton() |
|
64 | |||
65 | 51 | protected function registerBuilder() |
|
70 | |||
71 | 51 | protected function registerAttributes() |
|
76 | |||
77 | protected function registerRenderSystem() |
||
92 | |||
93 | /** |
||
94 | * Get the services provided by the provider. |
||
95 | * |
||
96 | * @return array |
||
97 | */ |
||
98 | public function provides() |
||
102 | } |
||
103 |