laravel-8 - 我没有得到 laravel 8 jetstream 个人资料照片路径。它节省了存储空间
问题描述
我正在使用喷射流。我没有得到个人资料图片 [点击图片][1] [1]:https://i.stack.imgur.com/7DSjK.png 这里是 devtool 代码
<img class="h-8 w-8 rounded-full object-cover" src="http://jed.test/storage/profile-photos/zmgDcXE9utwTH7E3vwtt8YxnoHVsfxbDovb8UKiw.jpeg" alt="Rifat">
解决方案
如果要将图像保存在默认磁盘 ( config/filesystems.php
) 上:
'local' => [
'driver' => 'local',
'root' => storage_path('app'),
],
图像保存在storage/app
文件夹中,要访问它,您需要运行php artisan storage:link
它,它将在您的公用文件夹上创建一个符号链接
推荐阅读
- ruby-on-rails - ActiveAdmin 和动态 Rails 命名空间
- core-data - 核心数据 NSManagedObject 转换为 json 格式
- python - 无法在 codechef 上解决 Python 中的 NZEC 错误,尽管它在 IDE 上给出了正确的输出
- ios - iOS - 大标题隐藏了我的身体顶部
- r - 将数据框的列转换为因子
- android - 当我单击 TabLayout 的选项卡或通过 viewpager 移动时,我想加载片段
- php - 更多按钮在wordpress帖子中重复相同的值
- dynamics-crm - 如何在 Dynamics crm 中定义 Knowledge 文章的相关产品?
- servicenow - ServiceNow “大于或是”、“小于或是”和“之间”字符串比较运算符
- xml - 尝试通过 Azure AD B2C 自定义策略登录时,Discord api 返回 401 未授权