public function removeGroupFromRole(int $group_id, int $role_id)
    {

        $role = $this->getRole($role_id);
        if ($role->groups()->detach($group_id) > 0)
            event(new UserGroupRoleRemoved($group_id, $role));

    }
public function removeGroupFromRole(int $group_id, int $role_id)
    {

        $role = $this->getRole($role_id);
        if ($role->groups()->detach($group_id) > 0)
            event(new UserGroupRoleRemoved($group_id, $role));

    }
public function removeGroupFromRole ( int $ group_id , int $ role_id ) { $ role = $ this -> getRole ( $ role_id ) ; if ( $ role -> groups ( ) -> detach ( $ group_id ) > 0 ) event ( new UserGroupRoleRemoved ( $ group_id , $ role ) ) ; }
Remove a group from a role.

@param int $group_id
@param int $role_id
Remove a group from a role .