/** * Revoke Group Role * * @param RoleInterface $role * @param GroupInterface $group */ public function revokeGroupRole(RoleInterface $role, GroupInterface $group) { return $group->getRoles()->detach($role->getAttribute('id')); }
/** * Set user group * * @param GroupInterface $group * @return $this */ public function setGroup(GroupInterface $group) { $this->group_id = $group->getAttribute('id'); return $this; }