Tuesday, March 14, 2017

Laravel form model binding not populating file (photo) field

Im using laravel 5.3 and im using same form for create and edit.

the form contains file field

<div class="form-group">
        <label class="control-label">Photo: </label>
        {!! Form::input('file', 'photo', null, array('class'=>'form-control TabOnEnter', 'tabindex' => 6)) !!}
    </div>

This photo field work good while creating, but in editing the field goes empty., that is while editing other fields are populated from db, but this photo field is populating. any idea?



via arun

Advertisement