/** * Remove role's permissions * * @param RoleInterface $role * @param array $permissions */ public function removeRolePermissions(RoleInterface $role, array $permissions) { $role->rolePermissions()->unlink($permissions); }
/** * Update a role * * @param RoleInterface $role * @param string $name * * @return boolean */ public function updateRole(RoleInterface $role, $name) { $role->nameCol = $name; return $role->save(); }