Traits missing..
morettyCat opened this issue · 1 comments
morettyCat commented
In Laravel 7.x some things changed, for example some traits are not there anymore...
in RegistersUsers.php trait you use this old trait and it's not working..
namespace BlackBits\LaravelCognitoAuth\Auth;
use Illuminate\Http\Request;
use Illuminate\Auth\Events\Registered;
use BlackBits\LaravelCognitoAuth\CognitoClient;
use BlackBits\LaravelCognitoAuth\Exceptions\InvalidUserFieldException;
**use Illuminate\Foundation\Auth\RegistersUsers** as BaseSendsRegistersUsers;
result in:
Symfony\Component\ErrorHandler\Error\FatalError
4:25:10 PM
Trait 'Illuminate\Foundation\Auth\RegistersUsers' not found
/var/task/vendor/black-bits/laravel-cognito-auth/src/Auth/RegistersUsers.php:11
oheck commented
https://laravel.com/docs/7.x/authentication
You have to bring in the laravel/ui package.
composer require laravel/ui
php artisan ui:auth