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

Adding Users & roles submenu

parent 94c6a3f5
<?php namespace Modules\User\Composers; <?php namespace Modules\User\Composers;
use Illuminate\Support\Collection;
class SidebarViewComposer class SidebarViewComposer
{ {
public function compose($view) public function compose($view)
{ {
$view->items->put('user', [ $view->items->put('user', Collection::make([
'weight' => 1, [
'request' => "{$view->prefix}/users", 'weight' => '1',
'route' => 'dashboard.user.index', 'request' => "{$view->prefix}/users*",
'icon-class' => 'fa fa-user', 'route' => '#',
'title' => 'Users', '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