This repository was archived by the owner on Feb 10, 2019. It is now read-only.
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

Description
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.
Metadata
Metadata
Assignees
Labels
No labels