[英]Failed to load resource: the server responded with a status of 404 (Not Found) Laravel on Heroku
I am trying to show pictures in Laravel project from storage that is linked in public.我正在尝试从公共链接的存储中显示 Laravel 项目中的图片。
but I am getting error Failed to load resource: the server responded with a status of 404 (Not Found).但我收到错误加载资源失败:服务器响应状态为 404(未找到)。 It works in local, but it doesn't work on Heroku.
它适用于本地,但不适用于 Heroku。
<img class="card-img-top" src="{{asset('storage/'.$post->post_image)}}" alt="Card image cap">
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.