jeudi 29 juin 2017

Laravel - Accessing stored images in storage/app/public

I'm trying to show an image on a View, with the filename stored in a database, using laravel Storage function.

Using <img src="" alt=""> where $surgery->image contains the filename generates this HTML:

<img src="/storage/XY6TswNTTxTMtDWsxz9O3OUhPmfZZBaZPRLUPKAy.jpeg" alt="">

I already created a symlink to storage/app/public (used the command php artisan storage:link). A quick ls public/storage shows me the image is there.

ls public/storage
XY6TswNTTxTMtDWsxz9O3OUhPmfZZBaZPRLUPKAy.jpeg

Any tips would be greatly appreciated.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire