commit
0d4c5f4e9d
1 file changed
+2
-2
+2
-2
@@ -1,6 +1,6 @@
|
|||||||
<?php namespace Collective\Html;
|
<?php namespace Collective\Html;
|
||||||
|
|
||||||
use Carbon\Carbon;
|
use DateTime;
|
||||||
use Illuminate\Routing\UrlGenerator;
|
use Illuminate\Routing\UrlGenerator;
|
||||||
use Illuminate\Session\Store as Session;
|
use Illuminate\Session\Store as Session;
|
||||||
use Illuminate\Support\Traits\Macroable;
|
use Illuminate\Support\Traits\Macroable;
|
||||||
@@ -322,7 +322,7 @@ class FormBuilder {
|
|||||||
*/
|
*/
|
||||||
public function date($name, $value = null, $options = array())
|
public function date($name, $value = null, $options = array())
|
||||||
{
|
{
|
||||||
if ($value instanceof Carbon)
|
if ($value instanceof DateTime)
|
||||||
{
|
{
|
||||||
$value = $value->format('Y-m-d');
|
$value = $value->format('Y-m-d');
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user