joselfonseca / lighthouse-graphql-passport-auth

Add GraphQL mutations to get tokens from passport for https://lighthouse-php.com/
https://lighthouse-php-auth.com/
MIT License
229 stars 56 forks source link

SendsPasswordResetEmails does not exist in Laravel 8 #120

Closed webard closed 3 years ago

webard commented 3 years ago

https://github.com/joselfonseca/lighthouse-graphql-passport-auth/blob/3da831efbbab68bf0c3b859c7641f4c2300ca060/src/GraphQL/Mutations/ForgotPassword.php#L13

joselfonseca commented 3 years ago

hello @webard

Can you please check that "laravel/ui": "^3.0", is installed. It should be a dependency in the package and that is what brings the trait.

joselfonseca commented 3 years ago

Although I may be wrong about that. Since is Illuminate foundation. I'll take a look later today.

webard commented 3 years ago

Unfortunately that class does not exist in Laravel/ui. When I removed this trait from usage, mail was sent correctly but need to declare broker() method in RefreshToken class, because was present in SendsPasswordResetEmails.