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

Commit 2cdcec3

Browse files
author
BinotaLIU
committed
fix #332
1 parent 171631a commit 2cdcec3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Folklore/GraphQL/GraphQLController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ public function __construct(Request $request)
3333

3434
$defaultSchema = config('graphql.schema');
3535
if (is_array($route)) {
36-
$schema = array_get($route, '2.'.$prefix.'_schema', $defaultSchema);
36+
$schema = array_get($route, '2.graphql_schema', $defaultSchema);
3737
} elseif (is_object($route)) {
38-
$schema = $route->parameter($prefix.'_schema', $defaultSchema);
38+
$schema = $route->parameter('graphql_schema', $defaultSchema);
3939
} else {
4040
$schema = $defaultSchema;
4141
}

0 commit comments

Comments
 (0)