Conditions | 2 |
Paths | 2 |
Total Lines | 16 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
18 | public function boot() |
||
19 | { |
||
20 | if(function_exists('resource_path')) |
||
21 | { |
||
22 | $menuPath = resource_path('menu/default.php'); |
||
23 | $templatePath = resource_path('views/menu/menu.blade.php'); |
||
24 | } |
||
25 | else |
||
26 | { |
||
27 | $menuPath = base_path('resources/menu/default.php'); |
||
28 | $templatePath = base_path('resources/views/menu/menu.blade.php'); |
||
29 | } |
||
30 | |||
31 | $this->publishes([ |
||
32 | __DIR__ . '/../resources/menu/default.php' => $menuPath, |
||
33 | __DIR__ . '/../resources/views/menu/menu.blade.php' => $templatePath, |
||
34 | ]); |
||
58 | } |