When the user submit the form if there are any errors the fields should be populated with the submited values so the user dont need to insert theses values again. This is working fine but for the image field is not working.
I have the code below:
<form method="post" class="clearfix" action="{{route('post.store')}}" enctype="multipart/form-data">
<div class="form-row">
<div class="form-group col">
<label for="image">Image</label>
<label class="custom-file">
<input type="file" id="file" name="image" value="{{ old('image') }}" class="custom-file-input">
<span class="custom-file-control"></span>
</label>
</div>
</div>
</div>
Do you know why the path of the image dont appear if there are any errors after the form is submited?