skip to Main Content

I am new in laravel(using version 7),I downloaded existing project and trying to run in my local system,Project is working fine but unable to display any image,I am getting following line in front of images,How can i fix this ?,For example in image tag i am getting

/storage/photos/1/Category/mini-banner1.jpg

In img tag i am getting following code

<img src="/storage/photos/1/Category/mini-banner1.jpg" alt="/storage/photos/1/Category/mini-banner1.jpg">

2

Answers


  1. execute this cmd in your terminal

    php artisan storage:link
    
    Login or Signup to reply.
  2. Try This

    Static Image Path

    <img alt="no-image" class="img-fluid" src="{{asset('uploads/default/no-image.png')}}">
    

    Dynamic Image Path

    <img  class="img-fluid" src="{{asset('uploads/banner/'.$value->vImage)}}">
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search