Garden\Validation::fieldValid PHP Méthode

fieldValid() public méthode

Check whether or not a particular field is has errors.
public fieldValid ( string $field ) : boolean
$field string The name of the field to check for validity.
Résultat boolean Returns true if the field has no errors, false otherwise.
    public function fieldValid($field)
    {
        $result = !isset($this->errors[$field]) || count($this->errors[$field]) === 0;
        return $result;
    }