Laravel 5.4 中的资产检索问题
中的资产检索
问题:Laravel 5.4服务器根目录
-- public_html/
-- pilardir/ [Laravel Installed Here Project Controller, Models, Views Working from this directory]
问题域设置
www.thepiresearch.com Domain pointing directory (public_html/)
这里的问题是 [pilardir] 目录中的 laravel 应用程序设置,因此当我们设置任何资产文件或从应用程序上传博客图像时它的上传在这里 pilardir/public/uploads/blogs 都是正确的。
现在的问题是,当我们获取资产文件/图像时,它返回的路径和资产 url
public_html/public/uploads/blogs
不正确。
Issue: Assets retrieving issue in Laravel 5.4
Server root directory
-- public_html/
-- pilardir/ [Laravel Installed Here Project Controller, Models, Views Working from this directory]
Domain setup
www.thepiresearch.com Domain pointing directory (public_html/)
The problem here is the laravel application setup in the [pilardir] directory so when we setting up any assets file or upload blog images from the app then its uploading here pilardir/public/uploads/blogs which is all correct.
Now the problem is when we fetching the assets files / images it return the path and assets url from
public_html/public/uploads/blogs
which is incorrect.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
请尝试这个:
www.thepiresearch.com/uploads/blogs
删除 public_html/public/uploads/ 的 public 和 public_html博客
please try this :
www.thepiresearch.com/uploads/blogs
remove public and public_html of public_html/public/uploads/blogs