debugbar.php 7.5 KB

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