Brak opisu

telescope.php 5.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  1. <?php
  2. use Laravel\Telescope\Watchers;
  3. use Laravel\Telescope\Http\Middleware\Authorize;
  4. return [
  5. /*
  6. |--------------------------------------------------------------------------
  7. | Telescope Domain
  8. |--------------------------------------------------------------------------
  9. |
  10. | This is the subdomain where Telescope will be accessible from. If the
  11. | setting is null, Telescope will reside under the same domain as the
  12. | application. Otherwise, this value will be used as the subdomain.
  13. |
  14. */
  15. 'domain' => env('TELESCOPE_DOMAIN', null),
  16. /*
  17. |--------------------------------------------------------------------------
  18. | Telescope Path
  19. |--------------------------------------------------------------------------
  20. |
  21. | This is the URI path where Telescope will be accessible from. Feel free
  22. | to change this path to anything you like. Note that the URI will not
  23. | affect the paths of its internal API that aren't exposed to users.
  24. |
  25. */
  26. 'path' => env('TELESCOPE_PATH', 'telescope'),
  27. /*
  28. |--------------------------------------------------------------------------
  29. | Telescope Storage Driver
  30. |--------------------------------------------------------------------------
  31. |
  32. | This configuration options determines the storage driver that will
  33. | be used to store Telescope's data. In addition, you may set any
  34. | custom options as needed by the particular driver you choose.
  35. |
  36. */
  37. 'driver' => env('TELESCOPE_DRIVER', 'database'),
  38. 'storage' => [
  39. 'database' => [
  40. 'connection' => env('DB_CONNECTION', 'mysql'),
  41. 'chunk' => 1000,
  42. ],
  43. ],
  44. /*
  45. |--------------------------------------------------------------------------
  46. | Telescope Master Switch
  47. |--------------------------------------------------------------------------
  48. |
  49. | This option may be used to disable all Telescope watchers regardless
  50. | of their individual configuration, which simply provides a single
  51. | and convenient way to enable or disable Telescope data storage.
  52. |
  53. */
  54. 'enabled' => env('TELESCOPE_ENABLED', true),
  55. /*
  56. |--------------------------------------------------------------------------
  57. | Telescope Route Middleware
  58. |--------------------------------------------------------------------------
  59. |
  60. | These middleware will be assigned to every Telescope route, giving you
  61. | the chance to add your own middleware to this list or change any of
  62. | the existing middleware. Or, you can simply stick with this list.
  63. |
  64. */
  65. 'middleware' => [
  66. 'web',
  67. Authorize::class,
  68. ],
  69. /*
  70. |--------------------------------------------------------------------------
  71. | Ignored Paths & Commands
  72. |--------------------------------------------------------------------------
  73. |
  74. | The following array lists the URI paths and Artisan commands that will
  75. | not be watched by Telescope. In addition to this list, some Laravel
  76. | commands, like migrations and queue commands, are always ignored.
  77. |
  78. */
  79. 'ignore_paths' => [
  80. //
  81. ],
  82. 'ignore_commands' => [
  83. //
  84. ],
  85. /*
  86. |--------------------------------------------------------------------------
  87. | Telescope Watchers
  88. |--------------------------------------------------------------------------
  89. |
  90. | The following array lists the "watchers" that will be registered with
  91. | Telescope. The watchers gather the application's profile data when
  92. | a request or task is executed. Feel free to customize this list.
  93. |
  94. */
  95. 'watchers' => [
  96. Watchers\CacheWatcher::class => env('TELESCOPE_CACHE_WATCHER', true),
  97. Watchers\CommandWatcher::class => [
  98. 'enabled' => env('TELESCOPE_COMMAND_WATCHER', true),
  99. 'ignore' => [],
  100. ],
  101. Watchers\DumpWatcher::class => env('TELESCOPE_DUMP_WATCHER', true),
  102. Watchers\EventWatcher::class => env('TELESCOPE_EVENT_WATCHER', true),
  103. Watchers\ExceptionWatcher::class => env('TELESCOPE_EXCEPTION_WATCHER', true),
  104. Watchers\JobWatcher::class => env('TELESCOPE_JOB_WATCHER', true),
  105. Watchers\LogWatcher::class => env('TELESCOPE_LOG_WATCHER', true),
  106. Watchers\MailWatcher::class => env('TELESCOPE_MAIL_WATCHER', true),
  107. Watchers\ModelWatcher::class => [
  108. 'enabled' => env('TELESCOPE_MODEL_WATCHER', true),
  109. 'events' => ['eloquent.*'],
  110. ],
  111. Watchers\NotificationWatcher::class => env('TELESCOPE_NOTIFICATION_WATCHER', true),
  112. Watchers\QueryWatcher::class => [
  113. 'enabled' => env('TELESCOPE_QUERY_WATCHER', true),
  114. 'ignore_packages' => true,
  115. 'slow' => 100,
  116. ],
  117. Watchers\RedisWatcher::class => env('TELESCOPE_REDIS_WATCHER', true),
  118. Watchers\RequestWatcher::class => [
  119. 'enabled' => env('TELESCOPE_REQUEST_WATCHER', true),
  120. 'size_limit' => env('TELESCOPE_RESPONSE_SIZE_LIMIT', 64),
  121. ],
  122. Watchers\GateWatcher::class => [
  123. 'enabled' => env('TELESCOPE_GATE_WATCHER', true),
  124. 'ignore_abilities' => [],
  125. 'ignore_packages' => true,
  126. ],
  127. Watchers\ScheduleWatcher::class => env('TELESCOPE_SCHEDULE_WATCHER', true),
  128. ],
  129. ];