Laravel 5 - How to access image uploaded in storage within View?

前端 未结 12 2659
悲哀的现实
悲哀的现实 2020-11-22 14:05

I have got user\'s avatars uploaded in Laravel storage. How can I access them and render them in a view?

The server is pointing all requests to /public,

12条回答
  •  迷失自我
    2020-11-22 14:34

    If you are using php then just please use the php symlink function, like following:

    symlink('/home/username/projectname/storage/app/public', '/home/username/public_html/storage')

    change the username and project name to the right names.

提交回复
热议问题