0

My Laravel application is about uploading and showing images. It was working good and all images where shown correctly. Now a few weeks later I tried to test it again and it stopped working. Images are in Laravel storage and path is correct but it says: "Failed to load resource: the server responded with a status of 404 (Not Found)".

Path is: http://localhost:8000/storage/images/8/uploaded/1536930406sunflower.png, and it's correct, image is there.

Weird is that it was working for months and now images cannot be found.

Thanks!

4

1 回答 1

3

我已经找到了我的问题的解决方案以及那些有同样问题的人:

公共文件夹中的存储链接可能已损坏。

1)删除app/public文件夹中的存储链接。

2)运行命令php artisan storage:link再次创建存储链接。

于 2018-11-02T10:04:38.397 回答