Conditions | 1 |
Paths | 1 |
Total Lines | 23 |
Code Lines | 15 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php namespace Modules\Recipe\Sidebar; |
||
30 | public function extendWith(Menu $menu) |
||
31 | { |
||
32 | $menu->group(trans('core::sidebar.content'), function (Group $group) { |
||
33 | $group->item('Recipe', function (Item $item) { |
||
34 | $item->icon('fa fa-copy'); |
||
35 | $item->weight(10); |
||
36 | $item->authorize( |
||
37 | $this->auth->hasAccess('recipe.recipes.index') |
||
38 | ); |
||
39 | $item->item(trans('recipe::recipes.title.recipes'), function (Item $item) { |
||
40 | $item->icon('fa fa-copy'); |
||
41 | $item->weight(0); |
||
42 | $item->append('admin.recipe.recipe.create'); |
||
43 | $item->route('admin.recipe.recipe.index'); |
||
44 | $item->authorize( |
||
45 | $this->auth->hasAccess('recipe.recipes.index') |
||
46 | ); |
||
47 | }); |
||
48 | }); |
||
49 | }); |
||
50 | |||
51 | return $menu; |
||
52 | } |
||
53 | } |
||
54 |