Conditions | 1 |
Paths | 1 |
Total Lines | 16 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php namespace Modules\Menu\Sidebar; |
||
30 | public function extendWith(Menu $menu) |
||
31 | { |
||
32 | $menu->group(trans('core::sidebar.content'), function (Group $group) { |
||
33 | $group->weight(90); |
||
34 | $group->item(trans('menu::menu.title'), function (Item $item) { |
||
35 | $item->weight(3); |
||
36 | $item->icon('fa fa-bars'); |
||
37 | $item->route('admin.menu.menu.index'); |
||
38 | $item->authorize( |
||
39 | $this->auth->hasAccess('menu.menus.index') |
||
40 | ); |
||
41 | }); |
||
42 | }); |
||
43 | |||
44 | return $menu; |
||
45 | } |
||
46 | } |
||
47 |