Skip to content
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
@ghost

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions