Laravel - How to revert local storage symlink and refresh

前端 未结 4 1528
隐瞒了意图╮
隐瞒了意图╮ 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:00

    That is actually how it should be! Laravel has a command to symlink your public directory to the storage directory:

    php artisan storage:link
    

    The idea is to keep a persistent storage between deployments.

    This convention will keep your publicly accessible files in one directory that can be easily shared across deployments when using zero down-time deployment systems like Envoyer.

    https://laravel.com/docs/5.5/filesystem

提交回复
热议问题