| Conditions | 1 |
| Paths | 1 |
| Total Lines | 18 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php namespace Modules\Dashboard\Sidebar; |
||
| 30 | public function extendWith(Menu $menu) |
||
| 31 | { |
||
| 32 | $menu->group(trans('dashboard::dashboard.name'), function (Group $group) { |
||
| 33 | $group->weight(0); |
||
| 34 | $group->hideHeading(); |
||
| 35 | |||
| 36 | $group->item(trans('dashboard::dashboard.name'), function (Item $item) { |
||
| 37 | $item->icon('fa fa-dashboard'); |
||
| 38 | $item->route('dashboard.index'); |
||
| 39 | $item->isActiveWhen(route('dashboard.index', null, false)); |
||
| 40 | $item->authorize( |
||
| 41 | $this->auth->hasAccess('dashboard.index') |
||
| 42 | ); |
||
| 43 | }); |
||
| 44 | }); |
||
| 45 | |||
| 46 | return $menu; |
||
| 47 | } |
||
| 48 | } |
||
| 49 |