telescope.php 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  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' => 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' => '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. ],
  42. ],
  43. /*
  44. |--------------------------------------------------------------------------
  45. | Telescope Master Switch
  46. |--------------------------------------------------------------------------
  47. |
  48. | This option may be used to disable all Telescope watchers regardless
  49. | of their individual configuration, which simply provides a single
  50. | and convenient way to enable or disable Telescope data storage.
  51. |
  52. */
  53. 'enabled' => env('TELESCOPE_ENABLED', false),
  54. /*
  55. |--------------------------------------------------------------------------
  56. | Telescope Route Middleware
  57. |--------------------------------------------------------------------------
  58. |
  59. | These middleware will be assigned to every Telescope route, giving you
  60. | the chance to add your own middleware to this list or change any of
  61. | the existing middleware. Or, you can simply stick with this list.
  62. |
  63. */
  64. 'middleware' => [
  65. 'web',
  66. // Authorize::class,
  67. ],
  68. /*
  69. |--------------------------------------------------------------------------
  70. | Ignored Paths & Commands
  71. |--------------------------------------------------------------------------
  72. |
  73. | The following array lists the URI paths and Artisan commands that will
  74. | not be watched by Telescope. In addition to this list, some Laravel
  75. | commands, like migrations and queue commands, are always ignored.
  76. |
  77. */
  78. 'ignore_paths' => [
  79. //
  80. ],
  81. 'ignore_commands' => [
  82. //
  83. ],
  84. /*
  85. |--------------------------------------------------------------------------
  86. | Telescope Watchers
  87. |--------------------------------------------------------------------------
  88. |
  89. | The following array lists the "watchers" that will be registered with
  90. | Telescope. The watchers gather the application's profile data when
  91. | a request or task is executed. Feel free to customize this list.
  92. |
  93. */
  94. 'watchers' => [
  95. Watchers\CacheWatcher::class => env('TELESCOPE_CACHE_WATCHER', true),
  96. Watchers\CommandWatcher::class => [
  97. 'enabled' => env('TELESCOPE_COMMAND_WATCHER', true),
  98. 'ignore' => [],
  99. ],
  100. Watchers\DumpWatcher::class => env('TELESCOPE_DUMP_WATCHER', true),
  101. Watchers\EventWatcher::class => env('TELESCOPE_EVENT_WATCHER', true),
  102. Watchers\ExceptionWatcher::class => env('TELESCOPE_EXCEPTION_WATCHER', true),
  103. Watchers\JobWatcher::class => env('TELESCOPE_JOB_WATCHER', true),
  104. Watchers\LogWatcher::class => env('TELESCOPE_LOG_WATCHER', true),
  105. Watchers\MailWatcher::class => env('TELESCOPE_MAIL_WATCHER', true),
  106. Watchers\ModelWatcher::class => [
  107. 'enabled' => env('TELESCOPE_MODEL_WATCHER', true),
  108. 'events' => ['eloquent.*'],
  109. ],
  110. Watchers\NotificationWatcher::class => env('TELESCOPE_NOTIFICATION_WATCHER', true),
  111. Watchers\QueryWatcher::class => [
  112. 'enabled' => env('TELESCOPE_QUERY_WATCHER', true),
  113. 'ignore_packages' => true,
  114. 'slow' => 100,
  115. ],
  116. Watchers\RedisWatcher::class => env('TELESCOPE_REDIS_WATCHER', true),
  117. Watchers\RequestWatcher::class => [
  118. 'enabled' => env('TELESCOPE_REQUEST_WATCHER', true),
  119. 'size_limit' => env('TELESCOPE_RESPONSE_SIZE_LIMIT', 64),
  120. ],
  121. Watchers\GateWatcher::class => [
  122. 'enabled' => env('TELESCOPE_GATE_WATCHER', true),
  123. 'ignore_abilities' => [],
  124. 'ignore_packages' => true,
  125. ],
  126. Watchers\ScheduleWatcher::class => env('TELESCOPE_SCHEDULE_WATCHER', true),
  127. ],
  128. ];