链街Dcat后台
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

215 lines
8.5 KiB

  1. <?php
  2. return [
  3. /*
  4. |--------------------------------------------------------------------------
  5. | Debugbar Settings
  6. |--------------------------------------------------------------------------
  7. |
  8. | Debugbar is enabled by default, when debug is set to true in app.php.
  9. | You can override the value by setting enable to true or false instead of null.
  10. |
  11. | You can provide an array of URI's that must be ignored (eg. 'api/*')
  12. |
  13. */
  14. 'enabled' => env('DEBUGBAR_ENABLED', true),
  15. 'except' => [
  16. 'telescope*',
  17. 'horizon*'
  18. ],
  19. /*
  20. |--------------------------------------------------------------------------
  21. | Storage settings
  22. |--------------------------------------------------------------------------
  23. |
  24. | DebugBar stores data for session/ajax requests.
  25. | You can disable this, so the debugbar stores data in headers/session,
  26. | but this can cause problems with large data collectors.
  27. | By default, file storage (in the storage folder) is used. Redis and PDO
  28. | can also be used. For PDO, run the package migrations first.
  29. |
  30. */
  31. 'storage' => [
  32. 'enabled' => true,
  33. 'driver' => 'file', // redis, file, pdo, custom
  34. 'path' => storage_path('debugbar'), // For file driver
  35. 'connection' => null, // Leave null for default connection (Redis/PDO)
  36. 'provider' => '' // Instance of StorageInterface for custom driver
  37. ],
  38. /*
  39. |--------------------------------------------------------------------------
  40. | Vendors
  41. |--------------------------------------------------------------------------
  42. |
  43. | Vendor files are included by default, but can be set to false.
  44. | This can also be set to 'js' or 'css', to only include javascript or css vendor files.
  45. | Vendor files are for css: font-awesome (including fonts) and highlight.js (css files)
  46. | and for js: jquery and and highlight.js
  47. | So if you want syntax highlighting, set it to true.
  48. | jQuery is set to not conflict with existing jQuery scripts.
  49. |
  50. */
  51. 'include_vendors' => true,
  52. /*
  53. |--------------------------------------------------------------------------
  54. | Capture Ajax Requests
  55. |--------------------------------------------------------------------------
  56. |
  57. | The Debugbar can capture Ajax requests and display them. If you don't want this (ie. because of errors),
  58. | you can use this option to disable sending the data through the headers.
  59. |
  60. | Optionally, you can also send ServerTiming headers on ajax requests for the Chrome DevTools.
  61. */
  62. 'capture_ajax' => true,
  63. 'add_ajax_timing' => false,
  64. /*
  65. |--------------------------------------------------------------------------
  66. | Custom Error Handler for Deprecated warnings
  67. |--------------------------------------------------------------------------
  68. |
  69. | When enabled, the Debugbar shows deprecated warnings for Symfony components
  70. | in the Messages tab.
  71. |
  72. */
  73. 'error_handler' => false,
  74. /*
  75. |--------------------------------------------------------------------------
  76. | Clockwork integration
  77. |--------------------------------------------------------------------------
  78. |
  79. | The Debugbar can emulate the Clockwork headers, so you can use the Chrome
  80. | Extension, without the server-side code. It uses Debugbar collectors instead.
  81. |
  82. */
  83. 'clockwork' => false,
  84. /*
  85. |--------------------------------------------------------------------------
  86. | DataCollectors
  87. |--------------------------------------------------------------------------
  88. |
  89. | Enable/disable DataCollectors
  90. |
  91. */
  92. 'collectors' => [
  93. 'phpinfo' => true, // Php version
  94. 'messages' => true, // Messages
  95. 'time' => true, // Time Datalogger
  96. 'memory' => true, // Memory usage
  97. 'exceptions' => true, // Exception displayer
  98. 'log' => true, // Logs from Monolog (merged in messages if enabled)
  99. 'db' => true, // Show database (PDO) queries and bindings
  100. 'views' => true, // Views with their data
  101. 'route' => true, // Current route information
  102. 'auth' => false, // Display Laravel authentication status
  103. 'gate' => true, // Display Laravel Gate checks
  104. 'session' => true, // Display session data
  105. 'symfony_request' => true, // Only one can be enabled..
  106. 'mail' => true, // Catch mail messages
  107. 'laravel' => false, // Laravel version and environment
  108. 'events' => false, // All events fired
  109. 'default_request' => false, // Regular or special Symfony request logger
  110. 'logs' => false, // Add the latest log messages
  111. 'files' => false, // Show the included files
  112. 'config' => false, // Display config settings
  113. 'cache' => false, // Display cache events
  114. 'models' => true, // Display models
  115. 'livewire' => true, // Display Livewire (when available)
  116. ],
  117. /*
  118. |--------------------------------------------------------------------------
  119. | Extra options
  120. |--------------------------------------------------------------------------
  121. |
  122. | Configure some DataCollectors
  123. |
  124. */
  125. 'options' => [
  126. 'auth' => [
  127. 'show_name' => true, // Also show the users name/email in the debugbar
  128. ],
  129. 'db' => [
  130. 'with_params' => true, // Render SQL with the parameters substituted
  131. 'backtrace' => true, // Use a backtrace to find the origin of the query in your files.
  132. 'backtrace_exclude_paths' => [], // Paths to exclude from backtrace. (in addition to defaults)
  133. 'timeline' => false, // Add the queries to the timeline
  134. 'explain' => [ // Show EXPLAIN output on queries
  135. 'enabled' => false,
  136. 'types' => ['SELECT'], // // workaround ['SELECT'] only. https://github.com/barryvdh/laravel-debugbar/issues/888 ['SELECT', 'INSERT', 'UPDATE', 'DELETE']; for MySQL 5.6.3+
  137. ],
  138. 'hints' => false, // Show hints for common mistakes
  139. ],
  140. 'mail' => [
  141. 'full_log' => false
  142. ],
  143. 'views' => [
  144. 'data' => false, //Note: Can slow down the application, because the data can be quite large..
  145. ],
  146. 'route' => [
  147. 'label' => true // show complete route on bar
  148. ],
  149. 'logs' => [
  150. 'file' => null
  151. ],
  152. 'cache' => [
  153. 'values' => true // collect cache values
  154. ],
  155. ],
  156. /*
  157. |--------------------------------------------------------------------------
  158. | Inject Debugbar in Response
  159. |--------------------------------------------------------------------------
  160. |
  161. | Usually, the debugbar is added just before </body>, by listening to the
  162. | Response after the App is done. If you disable this, you have to add them
  163. | in your template yourself. See http://phpdebugbar.com/docs/rendering.html
  164. |
  165. */
  166. 'inject' => true,
  167. /*
  168. |--------------------------------------------------------------------------
  169. | DebugBar route prefix
  170. |--------------------------------------------------------------------------
  171. |
  172. | Sometimes you want to set route prefix to be used by DebugBar to load
  173. | its resources from. Usually the need comes from misconfigured web server or
  174. | from trying to overcome bugs like this: http://trac.nginx.org/nginx/ticket/97
  175. |
  176. */
  177. 'route_prefix' => '_debugbar',
  178. /*
  179. |--------------------------------------------------------------------------
  180. | DebugBar route domain
  181. |--------------------------------------------------------------------------
  182. |
  183. | By default DebugBar route served from the same domain that request served.
  184. | To override default domain, specify it as a non-empty value.
  185. */
  186. 'route_domain' => null,
  187. /*
  188. |--------------------------------------------------------------------------
  189. | DebugBar theme
  190. |--------------------------------------------------------------------------
  191. |
  192. | Switches between light and dark theme. If set to auto it will respect system preferences
  193. | Possible values: auto, light, dark
  194. */
  195. 'theme' => 'auto',
  196. ];