Commit 48b02cd4 authored by Nicolas Widart's avatar Nicolas Widart

Adding Users & roles submenu

parent 94c6a3f5
<?php namespace Modules\User\Composers;
use Illuminate\Support\Collection;
class SidebarViewComposer
{
public function compose($view)
{
$view->items->put('user', [
'weight' => 1,
'request' => "{$view->prefix}/users",
'route' => 'dashboard.user.index',
'icon-class' => 'fa fa-user',
'title' => 'Users',
]);
$view->items->put('user', Collection::make([
[
'weight' => '1',
'request' => "{$view->prefix}/users*",
'route' => '#',
'icon-class' => 'fa fa-user',
'title' => 'Users & Roles',
],
[
'request' => "{$view->prefix}/users",
'route' => 'dashboard.user.index',
'icon-class' => 'fa fa-user',
'title' => 'Users',
],
[
'request' => "{$view->prefix}/messages/roles",
'route' => 'dashboard.user.index',
'icon-class' => 'fa fa-flag-o',
'title' => 'Roles',
]
]));
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment