function ruleRequiredWithout($anotherfields, $error_message = null) {
        if (is_array($anotherfields)) {
            $anotherfields = implode(',', $anotherfields);
        }

        return $this->_rule('required_without:' . $anotherfields, $error_message);
    }
function ruleRequiredWithout($anotherfields, $error_message = null) {
        if (is_array($anotherfields)) {
            $anotherfields = implode(',', $anotherfields);
        }

        return $this->_rule('required_without:' . $anotherfields, $error_message);
    }
function ruleRequiredWithout ( $ anotherfields , $ error_message = null ) { if ( is_array ( $ anotherfields ) ) { $ anotherfields = implode ( ',' , $ anotherfields ) ; } return $ this -> _rule ( 'required_without:' . $ anotherfields , $ error_message ) ; }
The field under validation must be present only when any of the other specified fields are not present.

@param      $anotherfields

@param null $error_message

@return ValidateBuilder
@throws \Exception
The field under validation must be present only when any of the other specified fields are not present .