debugbar.php 8.6 KB

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