Bobcares

Class Laravel Fortify Features Not Found | Troubleshooting Guide

by | May 14, 2024

Troubleshooting class Laravel Fortify features not found involves the following steps. Bobcares, as a part of our Laravel Support Services offers solutions to every query that comes our way.

Class Laravel Fortify Features Not Found Issue

Laravel Fortify

Laravel Fortify is a version of Laravel’s frontend agnostic authentication backend. In order to use all of Laravel’s authentication features—such as login, registration, password reset, email verification, and more—Fortify registers the routes and controllers that are required. Once Fortify has been installed, we can run the route:list Artisan command to see the routes that Fortify has registered.

A features config array is contained in the Fortify setup file. The backend routes and features that Fortify will by default expose are defined by this array. We can enable the following features, which are the fundamental authentication features offered by the majority of Laravel apps, if we are not using Fortify in conjunction with Laravel Jetstream:

'features' => [
Features::registration(),
Features::resetPasswords(),
Features::emailVerification(),
],

How to Use Fortify?

1. Install Fortify with Composer:

composer require laravel/fortify

2. Then, publish Fortify’s resources:

php artisan vendor:publish --provider="Laravel\Fortify\FortifyServiceProvider"

3. Now, migrate the database:

php artisan migrate

4. To check if Jetstream is installed along with Fortify, we can look for the Features.php class in the vendor/laravel/fortify/src directory. Also, ensure that the URL points to the correct directory if we’re using Valet.

If we face namespace issues like “undefined namespace,” we must check the config/jetstream.php or config/fortify.php files. Running composer dump-autoload can help verify the setup of both Fortify and Jetstream packages.

5. To install Jetstream along with Fortify:

composer require laravel/jetstream
php artisan jetstream:install livewire

Sometimes, we may see the below error:

class laravel fortify features not found

In such case, we must consider the following steps.

Troubleshooting Class Laravel Fortify Features Not Found Issue

1. Check if Jetstream is setup by looking in the vendor/laravel/fortify/ directory for the Features.php class.

2. Run php artisan serve and open the URL to double-check.

3. Confirm the Valet links point to the correct directory for package installations.

4. If we see “undefined namespace” errors in config/jetstream.php or config/fortify.php, it may be due to missing classes like Laravel\Jetstream\Features or Laravel\Fortify\Features. These classes should load from the vendor directory after running composer require laravel/fortify and composer require laravel/jetstream.

5. We can verify the installation with composer dump-autoload.

Discovered Package: laravel/fortify
Discovered Package: laravel/jetstream
Discovered Package: laravel/sail

[Searching solution for a different question? We’re happy to help.]

Conclusion

The article explains about the steps from our Experts to consider when we face the Class Laravel Fortify Features Not Found Issue during the setup.

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

Never again lose customers to poor
server speed! Let us help you.

Privacy Preference Center

Necessary

Necessary cookies help make a website usable by enabling basic functions like page navigation and access to secure areas of the website. The website cannot function properly without these cookies.

PHPSESSID - Preserves user session state across page requests.

gdpr[consent_types] - Used to store user consents.

gdpr[allowed_cookies] - Used to store user allowed cookies.

PHPSESSID, gdpr[consent_types], gdpr[allowed_cookies]
PHPSESSID
WHMCSpKDlPzh2chML

Statistics

Statistic cookies help website owners to understand how visitors interact with websites by collecting and reporting information anonymously.

_ga - Preserves user session state across page requests.

_gat - Used by Google Analytics to throttle request rate

_gid - Registers a unique ID that is used to generate statistical data on how you use the website.

smartlookCookie - Used to collect user device and location information of the site visitors to improve the websites User Experience.

_ga, _gat, _gid
_ga, _gat, _gid
smartlookCookie
_clck, _clsk, CLID, ANONCHK, MR, MUID, SM

Marketing

Marketing cookies are used to track visitors across websites. The intention is to display ads that are relevant and engaging for the individual user and thereby more valuable for publishers and third party advertisers.

IDE - Used by Google DoubleClick to register and report the website user's actions after viewing or clicking one of the advertiser's ads with the purpose of measuring the efficacy of an ad and to present targeted ads to the user.

test_cookie - Used to check if the user's browser supports cookies.

1P_JAR - Google cookie. These cookies are used to collect website statistics and track conversion rates.

NID - Registers a unique ID that identifies a returning user's device. The ID is used for serving ads that are most relevant to the user.

DV - Google ad personalisation

_reb2bgeo - The visitor's geographical location

_reb2bloaded - Whether or not the script loaded for the visitor

_reb2bref - The referring URL for the visit

_reb2bsessionID - The visitor's RB2B session ID

_reb2buid - The visitor's RB2B user ID

IDE, test_cookie, 1P_JAR, NID, DV, NID
IDE, test_cookie
1P_JAR, NID, DV
NID
hblid
_reb2bgeo, _reb2bloaded, _reb2bref, _reb2bsessionID, _reb2buid

Security

These are essential site cookies, used by the google reCAPTCHA. These cookies use an unique identifier to verify if a visitor is human or a bot.

SID, APISID, HSID, NID, PREF
SID, APISID, HSID, NID, PREF