class; $this->attributes['class'] = $class; if ($this->required) { $this->attributes['required'] = 'required'; } return form_input($this->attributes, old($this->name, $this->value)); } }