class; $this->attributes['class'] = $baseClass; if ($this->type === 'file') { $this->attributes['class'] .= ' file:px-3 file:py-2 file:h-[40px] file:font-semibold file:text-skin-muted file:text-sm file:rounded-none file:border-none file:bg-highlight file:cursor-pointer'; } else { $this->attributes['class'] .= ' px-3 py-2'; } unset($this->attributes['required']); if ($this->required) { $this->attributes['required'] = 'required'; } return form_input($this->attributes, old($this->name, $this->value)); } }