Laravel 5.3 - Issue displaying Images from public folder using @extends & @sections

前端 未结 3 885
再見小時候
再見小時候 2020-12-21 20:14

2nd Update:

For some reason the display: table; in my .header_table within home.blade.php was preventing the image from rendering.

3条回答
  •  时光取名叫无心
    2020-12-21 20:44

    To generate path till public directory you have to use asset() helper methord, and to display image you have to echo that path inside img src attribute.

    This should work for you.

    
    

    Assuming you have max.jpg in your_project/public/images/max.jpg.
    Hope this helps!

提交回复
热议问题