Overtrue\Validation\Validator::getValue PHP Method

getValue() protected method

Get the value of a given attribute.
protected getValue ( string $attribute ) : mixed
$attribute string
return mixed
    protected function getValue($attribute)
    {
        if (!is_null($value = array_get($this->data, $attribute))) {
            return $value;
        } elseif (!is_null($value = array_get($this->files, $attribute))) {
            return $value;
        }
    }
Validator