telescope.php 3.9 KB

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