src/Potter/Utils/Form/Traits/Field.php
public function replaceAttributes($attributes)
    {
        if (isset($attributes['label'])):
            $this->label = $attributes['label'];
            unset($attributes['label']);
        else:
            $this->label = $this->name;
        endif;

        $this->attributes = (array)$attributes;

        return $this;
    }
public function replaceAttributes($attributes)
    {
        if (isset($attributes['label'])):
            $this->label = $attributes['label'];
            unset($attributes['label']);
        else:
            $this->label = $this->name;
        endif;

        $this->attributes = (array)$attributes;

        return $this;
    }
@param array $attributes

@return $this