src/Reflex/Lockdown/Lockdown.php
public function removeUserRole($user, $role)
    {
        $user   =   $this->findUserById($user);
        $role   =   $this->findRoleByKey($role);

        if ($user->not($role->key)) {
            return true;
        }

        return $user->leave($role);
    }
public function removeUserRole($user, $role)
    {
        $user   =   $this->findUserById($user);
        $role   =   $this->findRoleByKey($role);

        if ($user->not($role->key)) {
            return true;
        }

        return $user->leave($role);
    }
public function removeUserRole ( $ user , $ role ) { $ user = $ this -> findUserById ( $ user ) ; $ role = $ this -> findRoleByKey ( $ role ) ; if ( $ user -> not ( $ role -> key ) ) { return true ; } return $ user -> leave ( $ role ) ; }
Remove a role from a user
@param  Reflex\Lockdown\Users\UserInterface|string $user
@param  Reflex\Lockdown\Roles\RoleInterface|string $role
@return boolean
Remove a role from a user