简体   繁体   中英

having an error says Failed to load resource: the server responded with a status of 404 (Not Found)

I don't know why but I'm having a problem get the image in the path /public/img/default.png

<img src="{{url('/public/img')}}/{{$data[0]->prod_img}}" width="100%">

I believe I have the right path but it says Failed to load resource: the server responded with a status of 404 (Not Found)

here's the database enter image description here

you can use this one

<img src="{{url('img/default.png')}}">

remove public

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM