Overtrue\Validation\Validator::allFailingRequired PHP Method

allFailingRequired() protected method

Determine if all of the given attributes fail the required test.
protected allFailingRequired ( array $attributes ) : boolean
$attributes array
return boolean
    protected function allFailingRequired(array $attributes)
    {
        foreach ($attributes as $key) {
            if ($this->validateRequired($key, $this->getValue($key))) {
                return false;
            }
        }
        return true;
    }
Validator