[ $path.'/graphiql' => [ 'name' => 'graphiql', 'middleware' => ['web'], 'prefix' => env('GRAPHQL_PREFIX', null), 'domain' => env('GRAPHIQL_URL'), /* |-------------------------------------------------------------------------- | Default GraphQL endpoint |-------------------------------------------------------------------------- | | The default endpoint that the GraphiQL UI is set to. | It assumes you are running GraphQL on the same domain | as GraphiQL, but can be set to any URL. | */ 'endpoint' => env('GRAPHIQL_GRAPHQL_ENDPOINT', 'GRAPHQL_URL').'/'.env('GRAPHQL_PATH', ''), /* |-------------------------------------------------------------------------- | Subscription endpoint |-------------------------------------------------------------------------- | | The default subscription endpoint the GraphiQL UI uses to connect to. | Tries to connect to the `endpoint` value if `null` as ws://{{endpoint}} | | Example: `ws://your-endpoint` or `wss://your-endpoint` | */ 'subscription-endpoint' => env('GRAPHIQL_SUBSCRIPTION_ENDPOINT', null), ], ], /* |-------------------------------------------------------------------------- | Control GraphiQL availability |-------------------------------------------------------------------------- | | Control if the GraphiQL UI is accessible at all. | This allows you to disable it in certain environments, | for example you might not want it active in production. | */ 'enabled' => (bool) env('GRAPHIQL_ENABLED', true), ];