首页 > 解决方案 > 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 登录页面并未相应更新。个人资料照片等功能不存在。是什么原因造成的?

标签: phplaravelauthenticationjetstream

解决方案


我认为每个功能都需要一些步骤,例如 Features::profilePhotos()需要运行:

php artisan storage:link

这会在您的应用程序中创建一个符号链接来存储这些文件。

检查文档中每个功能所需的详细信息,您可以从个人资料照片开始。


推荐阅读