Overtrue\Validation\Validator::getAttributeList PHP Method

getAttributeList() protected method

Transform an array of attributes to their displayable form.
protected getAttributeList ( array $values ) : array
$values array
return array
    protected function getAttributeList(array $values)
    {
        $attributes = [];
        // For each attribute in the list we will simply get its displayable form as
        // this is convenient when replacing lists of parameters like some of the
        // replacement functions do when formatting out the validation message.
        foreach ($values as $key => $value) {
            $attributes[$key] = $this->getAttribute($value);
        }
        return $attributes;
    }
Validator