Home > Software design >  Images not displaying in Laravel
Images not displaying in Laravel

Time:01-04

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">

CodePudding user response:

Try This

Static Image Path

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

Dynamic Image Path

<img   src="{{asset('uploads/banner/'.$value->vImage)}}">

CodePudding user response:

execute this cmd in your terminal

php artisan storage:link
  • Related