【问题标题】:Laravel not displaying images in storage folder while using artisan server使用工匠服务器时,Laravel 未在存储文件夹中显示图像
【发布时间】:2017-11-15 13:16:53
【问题描述】:

图片存储在'storage/app/public/gallery'中

我已经用过php artisan storage:link命令了。

当我在 apache 中运行应用程序时,图像正在显示。 但不是在工匠或我的 ipage 服务器中

http://vazz.edottechno.com/storage/gallery/33.jpg

【问题讨论】:

  • 你在 laravel 中使用过路由吗?
  • 图片?我不这么认为。我该怎么做?
  • 这可能意味着文件不在指定位置。你可能在 Windows 上?
  • 是的,我正在使用 Windows

标签: php laravel


【解决方案1】:

也许您必须授予 www-data 读取 storage/ 路径中文件的权限。 如果没有,请检查您是否使用了动态 url(url 助手)。在这种情况下,这可能是因为 env_url 设置不正确。

【讨论】:

    猜你喜欢
    • 2020-10-11
    • 1970-01-01
    • 2017-09-03
    • 2018-10-27
    • 2020-12-19
    • 2021-02-07
    • 2019-03-11
    • 2019-11-16
    • 1970-01-01
    相关资源
    最近更新 更多