I have ecommerce laravel application.
Laravel Framework 8.83.8
PHP v8.0.1
I have done
php artisan config:cache
php artisan route:cache
php artisan view:cache
I deployed it on Cloudways (Digital Ocean) via Git. but when i try to run my website it shows error
Error Class "Laravel\Fortify\Features" not found
I have used fortify features in 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,
]),
],
When i comments out all Fortify features then it show another error Jetstream features not fount.
I can't understand where is porblem. Please help me to solve this issue.
CodePudding user response:
To start using fortify you need first ,install Fortify using the Composer package manager
composer require laravel/fortify
then you need to, publish Fortify's resources using the vendor:publish command:
php artisan vendor:publish --provider="Laravel\Fortify\FortifyServiceProvider"
then you should migrate your DB
php artisan migrate
for more info please check Laravel Fortify Installation
CodePudding user response:
Problem Solved by Using
php artisan config:cache
php artisan cache:clear