Display the folder image for the view Laravel

前端 未结 2 695

How can I access a direct image from storage?

I\'m saving the images from my project in storage/images/clients/ how do I retrieve those images and displ

2条回答
  •  爱一瞬间的悲伤
    2020-12-12 04:22

    To retrieve the raw content of the file use:

    $contents = Storage::get('/path/to/file.jpg');
    

    But if you just trying to display it in the view, there no need for any special cumbersome method, Simply use

    
    

提交回复
热议问题