【发布时间】:2017-10-11 01:58:04
【问题描述】:
我已将一个可公开访问的文件上传到我的本地磁盘。我可以在我的 IDE 中的 storage/app/public/mysubdir/myfile.js 中看到它。
我已经运行了 artisan 命令来创建指向公共目录的符号链接。我还可以在 public/storage/mysubdir/myfile.js 中看到该文件。
然而,当我转到http://my.app/storage/mysubdir/myfile.js 时,我收到错误“RouteCollection.php 第 179 行中的 NotFoundHttpException”。
有什么想法吗?我需要添加一些特殊的路线吗?还是更新 Nginx?
我关注了https://laravel.com/docs/5.4/requests#storing-uploaded-files和https://laravel.com/docs/5.4/filesystem#the-public-disk
干杯
【问题讨论】:
-
你有到/storage的路径点吗?
-
没有。据我所知没有。
标签: laravel laravel-5 laravel-5.4