Laravel - How to revert local storage symlink and refresh

前端 未结 4 1530
隐瞒了意图╮
隐瞒了意图╮ 2021-02-05 16:20

When I save images to storage they show in the storage/app directory, but they don\'t show in public/storage. I also noticed that a sto

4条回答
  •  被撕碎了的回忆
    2021-02-05 17:17

    You can always delete the link:

    cd public
    rm storage
    

    And create a new one without using the storage:link command if you need to link different locations:

    \File::link(storage_path('dir1'), public_path('dir2'));
    

    Or create a symlink manually:

    ln -s /full/path/to/storage/dir1 /full/path/to/public/dir2
    

提交回复
热议问题