You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

49 lines
1.4 KiB

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