php - Laravel date input field default time value -


i trying display default time value within input field. reason current time showing in source code not displayed in view.

my form:

<div class="form-group">   {!! form::label('published_at', 'publish on') !!}   {!! form::input('date','published_at', carbon\carbon::now()->format('h:i'), ['class' => 'form-control']) !!} </div> 

sourcecode:

<div class="form-group"> <label for="published_at">publish on</label>   <input class="form-control" name="published_at" type="date" value="15:58" id="published_at">  </div> 

what's wrong here? trying current time , date.


Comments

Popular posts from this blog

jOOQ update returning clause with Oracle -

java - Warning equals/hashCode on @Data annotation lombok with inheritance -

java - BasicPathUsageException: Cannot join to attribute of basic type -