Home > OS >  Laravel: Uploaded image not showing
Laravel: Uploaded image not showing

Time:12-04

i keep getting 404 image not found when viewing the uploaded image on my project but the image is there. im using laravel's asset() helper to retrieve the image. the url in chrome shows http://127.0.0.1:8000/images/dU8oaVTAwQyTor86jvDtdGKvE7H3MYkHZuUG60gH.png and ive already done php artisan storage:link. any help is greatly appreciated.

CodePudding user response:

You shouldn't use the asset helper for this, the url generated is wrong. As you use the public storage, the url is supposed to be like this :

http://127.0.0.1:8000/storage/images/dU8oaVTAwQyTor86jvDtdGKvE7H3MYkHZuUG60gH.png

CodePudding user response:

but aren't you supposed to access the image through the public folder if you do php artisan storage:link

  • Related