skip to Main Content

I have some images saved and uploaded in the storage folder, I have created a link and the storage folder is accesible from the public folder. When I try to load the image using this code:

<img class="" style="width:100%" src="{{ asset('storage/Ad_Images/'.$adphoto->name ) }}" alt="Photo">

This is what the Chrome dev tools show

It should load but it looks like the image is there but something blocks it, if I click on the link in the image provided the browser shows the image

2

Answers


  1. You can’t display images from storage directory. This is protected directory. If you want to display images on browser store images in public folder.

    Login or Signup to reply.
  2. It looks like blocked by AdBlock.

    The solution is to remove from directory’s name “Ad”.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search