php - jetstream 不更新功能(在 config/jetstream.php 上)
问题描述
我正在关注一个 jetstream 教程,其中说,为了添加一些 jetstream 功能,您应该取消注释一些行,它应该会自动更新。在 jetstream.php 的这一部分:
/*
|--------------------------------------------------------------------------
| Features
|--------------------------------------------------------------------------
|
| Some of Jetstream's features are optional. You may disable the features
| by removing them from this array. You're free to only remove some of
| these features or you can even remove all of these if you need to.
|
*/
'features' => [
Features::termsAndPrivacyPolicy(),
Features::profilePhotos(),
Features::api(),
Features::teams(['invitations' => true]),
Features::accountDeletion(),
],
如您所见,我已取消注释所有内容,但我的 jetstream 登录页面并未相应更新。个人资料照片等功能不存在。是什么原因造成的?
解决方案
我认为每个功能都需要一些步骤,例如 Features::profilePhotos()需要运行:
php artisan storage:link
这会在您的应用程序中创建一个符号链接来存储这些文件。
检查文档中每个功能所需的详细信息,您可以从个人资料照片开始。
推荐阅读
- php - 样式表被自动删除/注销 - WordPress
- react-native - 安装 react-native-camera 后出现此错误。尝试按照 git 上的一些答案中的建议更改版本和 sdk 工具,但没有解决方案
- google-calendar-api - Google-Calendar API - 获取默认日历的偏移量
- java - 转换一个字节变量并将其转换为字符串
- r - Rmarkdown 中同一行的 Kableextra 表和 ggplot 图(PDF - 不是 Flexdashboard)
- batch-file - 使用循环通过批处理脚本重命名文件名
- python - 使用 tensorflow hub 再训练脚本对任何新类别的图像进行再训练的任何架构的高度不正确的预测
- javascript - nwjs chrome扩展问题
- react-native - React Native 动态组件名称错误
- android - Youtube 嵌入视频无法在小米设备 Cordova WebView 中播放