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

ValidatesRequests not found #93

Closed aurigadl closed 4 years ago

aurigadl commented 4 years ago

I am using the library with Lumen. The Illuminate \ Foundation \ Validation \ ValidatesRequests' resource is not in lumen and the ResetPassword Mutation requests this resource (ValidatesRequests) that is not being used. If that dependency that is not being used can be deleted, it would help to not generate the error in lumen and we would not have to rewrite that mutation.

POST /graphql - Trait 'Illuminate\Foundation\Validation\ValidatesRequests' not found in

composer.json

    "require": {
        "php": "^7.2.5",
        "dusterio/lumen-passport": "^0.2.19",
        "joselfonseca/lighthouse-graphql-passport-auth": "^4.1",
        "laravel/lumen-framework": "^7.0",
        "nuwave/lighthouse": "^4.13"
    },
joselfonseca commented 4 years ago

Hey @aurigadl. I've never used Lumen so I never came across this.

Can you try this https://github.com/joselfonseca/lighthouse-graphql-passport-auth/releases/tag/4.1.12 and see if that fixes the lumen compatibility

aurigadl commented 4 years ago

Thanks, it is already working, the error no longer appears in lumen.