Stefano Maglione
Stefano Maglione

Reputation: 4150

Laravel 5.3 show images in the view

I am having trouble showing images. I have stored images in:

nameproject/storage/images/2017/sep/

and I have created a link from the public folder:

ln -s storage/images public/images

and in my view:

<td><img src="{{ asset($post->image )}}" height="42" width="42"/></td>

but I receive the error:

GET https://challenge.local/images/2017/Sep/1504974522.jpeg 404 ()

Upvotes: 1

Views: 37

Answers (1)

RamAnji
RamAnji

Reputation: 470

try with this..images folder in public folder..

{{ URL::to('/images/2017/Sep/'.$post->image) }} http://localhost/laraveltest/public/images/2017/Sep/1504974522.jpeg

Upvotes: 1

Related Questions