samedi 24 octobre 2020

Display image in Vue from storage folder with laravel

I'm saving my images in following location

Storage/app/public/userImages

It is getting saved but when i retrieve it in my vue component it throws error 404 not found.

<img :src="`/storage/${post.img_path}`"/>

and the url which is created is

http://localhost:8000/storage/userImages/872937058.png

Please give any suggestions.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire