Overtrue\Validation\Validator::anyFailingRequired PHP Méthode

anyFailingRequired() protected méthode

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