/** * Create a email input field. * * @param string $name * @param string $value * @param array $options * * @return string */ public function email($name, $value = null, $options = []) { $this->addErrorClass($name, $options); $tags['input'] = parent::email($name, $value, $options); $tags['error'] = $this->getErrorTag($name); return $this->buildTags($tags); }
public function email($name, $value = null, $options = array()) { if (strpos(@$options['class'], 'form-control') === false) { @($options['class'] .= ' form-control'); } return parent::email($name, $value, $options); }
/** * Create an e-mail input field. * * @param string $name * @param string $value * @param array $options * @return string * @static */ public static function email($name, $value = null, $options = array()) { return \Illuminate\Html\FormBuilder::email($name, $value, $options); }
/** * {@inheritdoc} * @param string $name The name of the email input * @param string|null $value The default value of the input * @param array $attributes The attributes of the email input * @return string */ public function email($name, $value = null, $attributes = array()) { $attributes['class'] = isset($attributes['class']) ? self::FORM_CONTROL . ' ' . $attributes['class'] : self::FORM_CONTROL; return parent::email($name, $value, $attributes); }
/** * @param Field $field * @return string */ public function emailField(Field $field) { return $this->builder->email($field->name, $field->value, $field->getAttributes()); }
/** * Create an e-mail input field. * * @param string $name * @param string $value * @param array $options * @return string */ public function email($name, $value = null, $options = array()) { $this->appendReadOnly($options); return parent::email($name, $value, $options); }
/** * Create an e-mail input field. * * @param string $name * @param string $value * @param array $options * @return string */ public function email($name, $value = null, $options = array()) { return parent::email($name, $value, $this->addClass($options, static::TEXT_INPUT_CLASS)); }