jeudi 29 septembre 2016

AdminLTE with Laravel hidden in menu

I'm using this package Laravel-AdminLTE

I changed the adminlte.php to display the item only with permission. But when the user does not permit it shows the header without options wanted to hide it well.

        'ROLES / PERMISSIONS', // want hidden this in my template.
        [
            'text' => 'Roles',
            'icon' => 'unlock-alt',
            'permission'  => 'approve', // if permission is deny
            'submenu' => [
                [
                    'text' => 'All roles',
                    'url'  => 'dashboard/roles',
                ],
                [
                    'text' => 'New role',
                    'url'  => 'dashboard/roles/create',
                ],
            ],
        ],



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire