telescope.php 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205
  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. ],
  69. /*
  70. |--------------------------------------------------------------------------
  71. | Telescope Route Middleware
  72. |--------------------------------------------------------------------------
  73. |
  74. | These middleware will be assigned to every Telescope route, giving you
  75. | the chance to add your own middleware to this list or change any of
  76. | the existing middleware. Or, you can simply stick with this list.
  77. |
  78. */
  79. 'middleware' => [
  80. 'web',
  81. Authorize::class,
  82. ],
  83. /*
  84. |--------------------------------------------------------------------------
  85. | Allowed / Ignored Paths & Commands
  86. |--------------------------------------------------------------------------
  87. |
  88. | The following array lists the URI paths and Artisan commands that will
  89. | not be watched by Telescope. In addition to this list, some Laravel
  90. | commands, like migrations and queue commands, are always ignored.
  91. |
  92. */
  93. 'only_paths' => [
  94. // 'api/*'
  95. ],
  96. 'ignore_paths' => [
  97. 'livewire*',
  98. 'nova-api*',
  99. 'pulse*',
  100. ],
  101. 'ignore_commands' => [
  102. //
  103. ],
  104. /*
  105. |--------------------------------------------------------------------------
  106. | Telescope Watchers
  107. |--------------------------------------------------------------------------
  108. |
  109. | The following array lists the "watchers" that will be registered with
  110. | Telescope. The watchers gather the application's profile data when
  111. | a request or task is executed. Feel free to customize this list.
  112. |
  113. */
  114. 'watchers' => [
  115. Watchers\BatchWatcher::class => env('TELESCOPE_BATCH_WATCHER', true),
  116. Watchers\CacheWatcher::class => [
  117. 'enabled' => env('TELESCOPE_CACHE_WATCHER', true),
  118. 'hidden' => [],
  119. ],
  120. Watchers\ClientRequestWatcher::class => env('TELESCOPE_CLIENT_REQUEST_WATCHER', true),
  121. Watchers\CommandWatcher::class => [
  122. 'enabled' => env('TELESCOPE_COMMAND_WATCHER', true),
  123. 'ignore' => [],
  124. ],
  125. Watchers\DumpWatcher::class => [
  126. 'enabled' => env('TELESCOPE_DUMP_WATCHER', true),
  127. 'always' => env('TELESCOPE_DUMP_WATCHER_ALWAYS', false),
  128. ],
  129. Watchers\EventWatcher::class => [
  130. 'enabled' => env('TELESCOPE_EVENT_WATCHER', true),
  131. 'ignore' => [],
  132. ],
  133. Watchers\ExceptionWatcher::class => env('TELESCOPE_EXCEPTION_WATCHER', true),
  134. Watchers\GateWatcher::class => [
  135. 'enabled' => env('TELESCOPE_GATE_WATCHER', true),
  136. 'ignore_abilities' => [],
  137. 'ignore_packages' => true,
  138. 'ignore_paths' => [],
  139. ],
  140. Watchers\JobWatcher::class => env('TELESCOPE_JOB_WATCHER', true),
  141. Watchers\LogWatcher::class => [
  142. 'enabled' => env('TELESCOPE_LOG_WATCHER', true),
  143. 'level' => 'error',
  144. ],
  145. Watchers\MailWatcher::class => env('TELESCOPE_MAIL_WATCHER', true),
  146. Watchers\ModelWatcher::class => [
  147. 'enabled' => env('TELESCOPE_MODEL_WATCHER', true),
  148. 'events' => ['eloquent.*'],
  149. 'hydrations' => true,
  150. ],
  151. Watchers\NotificationWatcher::class => env('TELESCOPE_NOTIFICATION_WATCHER', true),
  152. Watchers\QueryWatcher::class => [
  153. 'enabled' => env('TELESCOPE_QUERY_WATCHER', true),
  154. 'ignore_packages' => true,
  155. 'ignore_paths' => [],
  156. 'slow' => 100,
  157. ],
  158. Watchers\RedisWatcher::class => env('TELESCOPE_REDIS_WATCHER', true),
  159. Watchers\RequestWatcher::class => [
  160. 'enabled' => env('TELESCOPE_REQUEST_WATCHER', true),
  161. 'size_limit' => env('TELESCOPE_RESPONSE_SIZE_LIMIT', 64),
  162. 'ignore_http_methods' => [],
  163. 'ignore_status_codes' => [],
  164. ],
  165. Watchers\ScheduleWatcher::class => env('TELESCOPE_SCHEDULE_WATCHER', true),
  166. Watchers\ViewWatcher::class => env('TELESCOPE_VIEW_WATCHER', true),
  167. ],
  168. ];