user upload multiple image and it stored in array form. how to display those images in laravel blade file?
when i tried i got this error.
htmlspecialchars() expects parameter 1 to be string, array given (View: C:\Users\user\laravel2\newfyp\resources\views\postqs\show.blade.php)
show blade :
<img src="/image/{{ $postqs['image'] }}"
style="width:150px; height:150px;"> </td>
model:
protected $casts = [
'image'=>'array', ];
protected $fillable = ['image'];
create blade
<div class="form-group">
<label class="control-label col-sm-2" >image test:
</label>
<form action="upload" id="upload" enctype="multipart/form-data">
<input type="file" name="image[]" id="image" multiple><br />
</form>
<div id="message"></div>
$postqs['image']is an array not a string