Level 17
@melloman : I have the same problem. Did you find a solution ?
I am trying to setup form model binding for when a record is updated so that all the form fields are filled out:
{!! Form::model($logo, ['method' => 'PATCH', 'url' => 'logos/' . $logo->id, 'files'=>true]) !!}
<div class="form-group">
{!! Form::label('companyname', 'Company name:') !!}
{!! Form::text('companyname', null, ['class' => 'form-control']) !!}
</div>
<div class="form-group">
{!! Form::label('logoimage', 'Logo Upload:') !!}
{!! Form::file('logoimage', null, ['class' => 'form-control']) !!}
</div>
{!! Form::close() !!}
The 'company name' field get pre-filled but how do I use form model binding for the file upload field when it needs to be an object and I have a raw file path string stored in the database?
Please or to participate in this conversation.