Laravel - How to revert local storage symlink and refresh

前端 未结 4 1527
隐瞒了意图╮
隐瞒了意图╮ 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条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-02-05 17:04

    For windows users, I have tested this with Windows 10 and Laravel 7

    Steps:

    1. cd to your /public directory and run rmdir storage - it will remove the link
    2. cd back to project root directory and run php artisan storage:link to link again

    The links should now be refreshed and viewable without issues.

提交回复
热议问题