我有电喷雾的申请。
Laravel Framework 8.83.8
PHP v8.0.1
我已经做了
php artisan config:cache
php artisan route:cache
php artisan view:cache
我通过Git在Cloudways (数字海洋)上部署了它。但是当我试图运行我的网站时,它会显示出错误。
Error Class "Laravel\Fortify\Features" not found
我在fortify.php中使用了增强功能
use Laravel\Fortify\Features;
use App\Providers\RouteServiceProvider;
'features' => [
Features::registration(),
Features::resetPasswords(),
Features::emailVerification(),
Features::updateProfileInformation(),
Features::updatePasswords(),
Features::twoFactorAuthentication([
'confirmPassword' => true,
]),
],
当我注释掉所有Fortify特性时,它会显示另一个错误: Jetstream特性,而不是fount。
我不明白色情区在哪里。请帮我解决这个问题。
发布于 2022-04-15 00:59:59
要开始使用您首先需要的fortify,请使用Composer包管理器安装Fortify。
composer require laravel/fortify
然后您需要使用供应商:发布命令发布Fortify的资源:
php artisan vendor:publish --provider="Laravel\Fortify\FortifyServiceProvider"
那么您应该迁移您的DB。
php artisan migrate
有关更多信息,请查看Laravel安装
https://stackoverflow.com/questions/71876073
复制相似问题