forked from mll-lab/laravel-graphql-playground
-
Notifications
You must be signed in to change notification settings - Fork 0
/
graphql-playground.php
49 lines (42 loc) · 1.46 KB
/
graphql-playground.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<?php
declare(strict_types=1);
return [
/*
|--------------------------------------------------------------------------
| Route configuration
|--------------------------------------------------------------------------
|
| Set the URI at which the GraphQL Playground can be viewed
| and any additional configuration for the route.
|
*/
'route' => [
'uri' => '/graphql-playground',
'name' => 'graphql-playground',
// 'middleware' => ['web']
// 'prefix' => '',
// 'domain' => 'graphql.' . env('APP_DOMAIN', 'localhost'),
],
/*
|--------------------------------------------------------------------------
| Default GraphQL endpoint
|--------------------------------------------------------------------------
|
| The default endpoint that the Playground UI is set to.
| It assumes you are running GraphQL on the same domain
| as GraphQL Playground, but can be set to any URL.
|
*/
'endpoint' => '/graphql',
/*
|--------------------------------------------------------------------------
| Control Playground availability
|--------------------------------------------------------------------------
|
| Control if the playground is accessible at all.
| This allows you to disable it in certain environments,
| for example you might not want it active in production.
|
*/
'enabled' => env('GRAPHQL_PLAYGROUND_ENABLED', true),
];