src/Models/Role.php
public function deletePermission($permission)
    {
        if ($this->hasPermission($permission)) {
            return PermissionRole::where(
                    ['role_id' => $this->id, 'permission_id' => $permission->id]
                )->first()->delete();
        }

        return false;
    }
public function deletePermission($permission)
    {
        if ($this->hasPermission($permission)) {
            return PermissionRole::where(
                    ['role_id' => $this->id, 'permission_id' => $permission->id]
                )->first()->delete();
        }

        return false;
    }
public function deletePermission ( $ permission ) { if ( $ this -> hasPermission ( $ permission ) ) { return PermissionRole :: where ( [ 'role_id' => $ this -> id , 'permission_id' => $ permission -> id ] ) -> first ( ) -> delete ( ) ; } return false ; }
Deletes the specified role permission.

@param mixed $permission
Deletes the specified role permission .