2

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 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.

Bagus Tesa
  • 1,317
  • 2
  • 19
  • 42

1 Answers1

2

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

Omar Tammam
  • 1,217
  • 1
  • 9
  • 17