Skip to content
This repository was archived by the owner on Feb 10, 2019. It is now read-only.

Cannot use middleware when not using default prefix and default schema #332

Open
ghost opened this issue Apr 30, 2018 · 0 comments
Open

Comments

@ghost
Copy link

ghost commented Apr 30, 2018

In Controller, it use config('graphql.prefix') as route parameter key:
https://github.com/Folkloreatelier/laravel-graphql/blob/171631a17e4bf33780513f15221ea6052c67d498/src/Folklore/GraphQL/GraphQLController.php#L35-L41

But in routes.php it is actually use a hard-coded key graphql_schema in route define:
https://github.com/Folkloreatelier/laravel-graphql/blob/1d94ab37f5051e6167e2a5421eacbe4d74994d55/src/Folklore/GraphQL/routes.php#L5

The $middleware in GraphQLController will always be default if I'm not using default prefix.

I'm not using the default prefix, so my code won't work.

@ghost ghost changed the title Cannot use middleware when not using default prefix and schema Cannot use middleware when not using default prefix Apr 30, 2018
@ghost ghost changed the title Cannot use middleware when not using default prefix Cannot use middleware when not using default prefix and default schema Apr 30, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants