Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error Class "Laravel\Fortify\Features" not found

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

Error image file

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 comment out all Fortify features then it shows another error Jetstream features not found.

I can't understand where is the problem. Please help me to solve this issue.

like image 458
Muhammad Arsalan Avatar asked Oct 25 '25 04:10

Muhammad Arsalan


1 Answers

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

like image 110
Omar Tammam Avatar answered Oct 26 '25 19:10

Omar Tammam



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!