date() public method

Create a date input field.
public date ( string $name, string $value = null, array $options = [] ) : Illuminate\Support\HtmlString
$name string
$value string
$options array
return Illuminate\Support\HtmlString
 /**
  * Create a date input field.
  *
  * @param string $name
  * @param string $value
  * @param array $options
  * @return string 
  * @static 
  */
 public static function date($name, $value = null, $options = array())
 {
     return \Collective\Html\FormBuilder::date($name, $value, $options);
 }
Example #2
0
 public function date($name, $value = null, $options = [])
 {
     $options = $this->setOptionClasses($name, $options, ['form-control']);
     $options['autocomplete'] = 'noway';
     $controlOptions = array_filter($options, function ($key) {
         return $key !== 'label';
     }, ARRAY_FILTER_USE_KEY);
     $controlHtml = parent::date($name, $value, $controlOptions);
     return $this->renderControl('date', $controlHtml, $name, $value, $options);
 }