Laravel 5.4 Storage link

后端 未结 6 1653
温柔的废话
温柔的废话 2020-12-19 13:37

i would like to show a picture in html file i go to the link folder public/storage/image is empty but in the storage/image i find the file and its also saved in th

6条回答
  •  抹茶落季
    2020-12-19 14:19

    The public disk is intended for files that are going to be publicly accessible. By default, the public disk uses the local driver and stores these files in storage/app/public. To make them accessible from the web, you should create a symbolic link from public/storage to storage/app/public. Laravel doc

    Create Symbolic link in Linux

    ln -s source_file myfile
    

提交回复
热议问题