black-bits / laravel-cognito-auth

MIT License
89 stars 51 forks source link

Traits missing.. #35

Closed morettyCat closed 3 years ago

morettyCat commented 3 years ago

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 3 years ago

https://laravel.com/docs/7.x/authentication

You have to bring in the laravel/ui package.

composer require laravel/ui
php artisan ui:auth