debugbar.php 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202
  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. 'api/*',
  17. 'admin/home/message'
  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' => true, // 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. ],
  115. /*
  116. |--------------------------------------------------------------------------
  117. | Extra options
  118. |--------------------------------------------------------------------------
  119. |
  120. | Configure some DataCollectors
  121. |
  122. */
  123. 'options' => [
  124. 'auth' => [
  125. 'show_name' => true, // Also show the users name/email in the debugbar
  126. ],
  127. 'db' => [
  128. 'with_params' => true, // Render SQL with the parameters substituted
  129. 'backtrace' => true, // Use a backtrace to find the origin of the query in your files.
  130. 'timeline' => false, // Add the queries to the timeline
  131. 'explain' => [ // Show EXPLAIN output on queries
  132. 'enabled' => false,
  133. 'types' => ['SELECT'], // ['SELECT', 'INSERT', 'UPDATE', 'DELETE']; for MySQL 5.6.3+
  134. ],
  135. 'hints' => true, // Show hints for common mistakes
  136. ],
  137. 'mail' => [
  138. 'full_log' => false
  139. ],
  140. 'views' => [
  141. 'data' => false, //Note: Can slow down the application, because the data can be quite large..
  142. ],
  143. 'route' => [
  144. 'label' => true // show complete route on bar
  145. ],
  146. 'logs' => [
  147. 'file' => null
  148. ],
  149. 'cache' => [
  150. 'values' => true // collect cache values
  151. ],
  152. ],
  153. /*
  154. |--------------------------------------------------------------------------
  155. | Inject Debugbar in Response
  156. |--------------------------------------------------------------------------
  157. |
  158. | Usually, the debugbar is added just before </body>, by listening to the
  159. | Response after the App is done. If you disable this, you have to add them
  160. | in your template yourself. See http://phpdebugbar.com/docs/rendering.html
  161. |
  162. */
  163. 'inject' => true,
  164. /*
  165. |--------------------------------------------------------------------------
  166. | DebugBar route prefix
  167. |--------------------------------------------------------------------------
  168. |
  169. | Sometimes you want to set route prefix to be used by DebugBar to load
  170. | its resources from. Usually the need comes from misconfigured web server or
  171. | from trying to overcome bugs like this: http://trac.nginx.org/nginx/ticket/97
  172. |
  173. */
  174. 'route_prefix' => '_debugbar',
  175. /*
  176. |--------------------------------------------------------------------------
  177. | DebugBar route domain
  178. |--------------------------------------------------------------------------
  179. |
  180. | By default DebugBar route served from the same domain that request served.
  181. | To override default domain, specify it as a non-empty value.
  182. */
  183. 'route_domain' => null,
  184. ];