From 2d413044e88b9925beafc89fe28eca855af4e6d7 Mon Sep 17 00:00:00 2001 From: cviebrock Date: Wed, 1 Feb 2012 00:16:05 -0600 Subject: [PATCH] Add HTML5 date field support. --- laravel/form.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/laravel/form.php b/laravel/form.php index 6889b79b..6b3f3104 100644 --- a/laravel/form.php +++ b/laravel/form.php @@ -304,6 +304,19 @@ public static function number($name, $value = null, $attributes = array()) { 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.