Overtrue\Validation\Validator::validateRequiredWithoutAll PHP Method

validateRequiredWithoutAll() protected method

Validate that an attribute exists when all other attributes do not.
protected validateRequiredWithoutAll ( string $attribute, mixed $value, mixed $parameters ) : boolean
$attribute string
$value mixed
$parameters mixed
return boolean
    protected function validateRequiredWithoutAll($attribute, $value, $parameters)
    {
        if ($this->allFailingRequired($parameters)) {
            return $this->validateRequired($attribute, $value);
        }
        return true;
    }
Validator