Browse Source

Add HTML5 date field support.

cviebrock 13 years ago
parent
commit
2d413044e8
1 changed files with 13 additions and 0 deletions
  1. 13 0
      laravel/form.php

+ 13 - 0
laravel/form.php

@@ -304,6 +304,19 @@ class Form {
 	{
 	{
 		return static::input('number', $name, $value, $attributes);
 		return static::input('number', $name, $value, $attributes);
 	}
 	}
+	
+	/**
+	 * Create a HTML date input element.
+	 *
+	 * @param  string  $name
+	 * @param  string  $value
+	 * @param  array   $attributes
+	 * @return string
+	 */		
+	public static function date($name, $value = null, $attributes = array())
+	{
+		return static::input('date', $name, $value, $attributes);
+	}
 
 
 	/**
 	/**
 	 * Create a HTML file input element.
 	 * Create a HTML file input element.