can you eager load it? $model->date_of_birth then format it after that.
Sep 9, 2016
7
Level 2
edit date in form
Hi, Me again!
I'm building an edit form and the date of Birth shows the default (d-m-y), doesn't fetch from the database. Whats the best way to add this in?
<div class="col-xs-4">
<div class="form-group">
{!! Form::label('date_of_birth', 'Date of Birth:') !!}
{!! Form::date('date_of_birth', date('D-m-y'), ['class' => 'form-control']) !!}
</div>
</div>
Please or to participate in this conversation.