telescope.php 6.7 KB

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