From 2cdcec380f5e08f0aad7e19ec905661484bcf486 Mon Sep 17 00:00:00 2001 From: BinotaLIU Date: Mon, 30 Apr 2018 14:29:08 +0800 Subject: [PATCH] fix #332 --- src/Folklore/GraphQL/GraphQLController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Folklore/GraphQL/GraphQLController.php b/src/Folklore/GraphQL/GraphQLController.php index dc3f603b..686baa0a 100644 --- a/src/Folklore/GraphQL/GraphQLController.php +++ b/src/Folklore/GraphQL/GraphQLController.php @@ -33,9 +33,9 @@ public function __construct(Request $request) $defaultSchema = config('graphql.schema'); if (is_array($route)) { - $schema = array_get($route, '2.'.$prefix.'_schema', $defaultSchema); + $schema = array_get($route, '2.graphql_schema', $defaultSchema); } elseif (is_object($route)) { - $schema = $route->parameter($prefix.'_schema', $defaultSchema); + $schema = $route->parameter('graphql_schema', $defaultSchema); } else { $schema = $defaultSchema; }