/** * Create a url input field. * * @param string $name * @param string $value * @param array $options * @return string * @static */ public static function url($name, $value = null, $options = array()) { return \Collective\Html\FormBuilder::url($name, $value, $options); }
public function url($name, $value = null, $options = []) { $options = $this->setOptionClasses($name, $options, ['form-control']); $controlOptions = $this->getControlOptions(collect($options)); $controlHtml = parent::url($name, $value, $controlOptions->toArray()); return $this->renderControl('url', $controlHtml, $name, $value, $options); }