text4u
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. <?php
  2. return [
  3. /*
  4. |--------------------------------------------------------------------------
  5. | GraphQL
  6. |--------------------------------------------------------------------------
  7. |
  8. | Here you may enable the GraphQL API, and select which resources
  9. | are available to be queried, depending on your site's needs.
  10. |
  11. | https://statamic.dev/graphql
  12. |
  13. */
  14. 'enabled' => env('STATAMIC_GRAPHQL_ENABLED', false),
  15. 'resources' => [
  16. 'collections' => false,
  17. 'navs' => false,
  18. 'taxonomies' => false,
  19. 'assets' => false,
  20. 'globals' => false,
  21. 'forms' => false,
  22. 'sites' => false,
  23. 'users' => false,
  24. ],
  25. /*
  26. |--------------------------------------------------------------------------
  27. | Queries
  28. |--------------------------------------------------------------------------
  29. |
  30. | Here you may list queries to be added to the Statamic schema.
  31. |
  32. | https://statamic.dev/graphql#custom-queries
  33. |
  34. */
  35. 'queries' => [
  36. //
  37. ],
  38. /*
  39. |--------------------------------------------------------------------------
  40. | Middleware
  41. |--------------------------------------------------------------------------
  42. |
  43. | Here you may list middleware to be added to the Statamic schema.
  44. |
  45. | https://statamic.dev/graphql#custom-middleware
  46. |
  47. */
  48. 'middleware' => [
  49. //
  50. ],
  51. /*
  52. |--------------------------------------------------------------------------
  53. | Caching
  54. |--------------------------------------------------------------------------
  55. |
  56. | By default, Statamic will cache each request until the specified
  57. | expiry, or until content is changed. See the documentation for
  58. | more details on how to customize your cache implementation.
  59. |
  60. | https://statamic.dev/graphql#caching
  61. |
  62. */
  63. 'cache' => [
  64. 'expiry' => 60,
  65. ],
  66. ];