Creating dateTime field with laravel collective

3

I am creating a field using Laravel Collective but I am having problems with the date field, first I am not able to create the DATATIME field and another problem is that it is coming from the bank, how can I solve these two problems ?

{!! Form::date('Visivel_Ini', \Carbon\Carbon::now(), ['class' => 'form-control']) !!}
    
asked by anonymous 10.09.2016 / 18:41

1 answer

3

The method is datetime :

Form::datetime('visivel_Ini', \Carbon\Carbon::now(), ['class'=>'form-control'])

If you prefer the date in the Brazilian format:

Form::input('text', 'visivel_Ini', \Carbon\Carbon::create()->format('d/m/Y H:i:s'), ['class'=>'form-control'])
    
10.09.2016 / 22:43