src/Stevemo/Cpanel/Permission/Repo/PermissionRepository.php
public function delete($id)
    {
        try
        {
            $perm = $this->model->findOrFail($id);
            $oldData = $perm;
            $perm->delete();
            $this->event->fire('permissions.delete', array($oldData));

            return true;
        }
        catch ( ModelNotFoundException $e)
        {
            return false;
        }
    }
public function delete($id)
    {
        try
        {
            $perm = $this->model->findOrFail($id);
            $oldData = $perm;
            $perm->delete();
            $this->event->fire('permissions.delete', array($oldData));

            return true;
        }
        catch ( ModelNotFoundException $e)
        {
            return false;
        }
    }
public function delete ( $ id ) { try { $ perm = $ this -> model -> findOrFail ( $ id ) ; $ oldData = $ perm ; $ perm -> delete ( ) ; $ this -> event -> fire ( 'permissions.delete' , array ( $ oldData ) ) ; return true ; } catch ( ModelNotFoundException $ e ) { return false ; } }
Delete a permission from storage

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

@param $id

@return bool
Delete a permission from storage