Trait 'Illuminate\Foundation\Auth\AuthenticatesUsers' not found on laravel 7x

Ok if anyone has this error this is because of the following:

All authentication scaffolding has been moved to the laravel/ui repository. If you are using Laravel's authentication scaffolding, you should install the ^2.0 release of this package and the package should be installed in all environments.

So to resolve the error simply run the composer command on the root folder of the laravel application:

composer require laravel/ui "^2.0"

Or simply run:

composer require laravel/ui

Hope this helps.


In a terminal window, execute this command:

composer require laravel/ui "^2.0"

Then execute one of these commands (with your JS favorite framework):

Once the laravel/ui package has been installed, you may install the frontend scaffolding using the ui Artisan commands:

php artisan ui vue --auth

Restart your local development environment and your code editor.

Tags:

Php

Laravel