src/BoomCMS/Database/Models/Group.php
public function removeRole($roleId, $pageId = 0)
    {
        $this->roles()
            ->wherePivot(self::PIVOT_ATTR_ROLE_ID, '=', $roleId)
            ->wherePivot(self::PIVOT_ATTR_PAGE_ID, '=', $pageId)
            ->detach();

        return $this;
    }
public function removeRole($roleId, $pageId = 0)
    {
        $this->roles()
            ->wherePivot(self::PIVOT_ATTR_ROLE_ID, '=', $roleId)
            ->wherePivot(self::PIVOT_ATTR_PAGE_ID, '=', $pageId)
            ->detach();

        return $this;
    }
public function removeRole ( $ roleId , $ pageId = 0 ) { $ this -> roles ( ) -> wherePivot ( self :: PIVOT_ATTR_ROLE_ID , '=' , $ roleId ) -> wherePivot ( self :: PIVOT_ATTR_PAGE_ID , '=' , $ pageId ) -> detach ( ) ; return $ this ; }
Remove a role from a group.

After removing the role from the group the permissions for the people the group are updated.

@param int $roleId

@return $this
Remove a role from a group .