src/Stevemo/Cpanel/Permission/Repo/PermissionRepository.php
public function update(array $data)
    {
        $perm = $this->findOrFail($data['id']);

        $perm->name = $data['name'];
        $perm->permissions = $data['permissions'];
        $perm->save();

        $this->event->fire('permissions.update',array($perm));

        return true;
    }
public function update(array $data)
    {
        $perm = $this->findOrFail($data['id']);

        $perm->name = $data['name'];
        $perm->permissions = $data['permissions'];
        $perm->save();

        $this->event->fire('permissions.update',array($perm));

        return true;
    }
public function update ( array $ data ) { $ perm = $ this -> findOrFail ( $ data [ 'id' ] ) ; $ perm -> name = $ data [ 'name' ] ; $ perm -> permissions = $ data [ 'permissions' ] ; $ perm -> save ( ) ; $ this -> event -> fire ( 'permissions.update' , array ( $ perm ) ) ; return true ; }
Update a permission into storage

@author Steve Montambeault
@link   http://stevemo.ca

@param array $data

@return bool
Update a permission into storage