|
15 | 15 | */ |
16 | 16 |
|
17 | 17 | 'enabled' => env('DEBUGBAR_ENABLED', null), |
18 | | - 'hide_empty_tabs' => true, // Hide tabs until they have content |
| 18 | + 'hide_empty_tabs' => env('DEBUGBAR_HIDE_EMPTY_TABS', true), // Hide tabs until they have content |
19 | 19 | 'except' => [ |
20 | 20 | 'telescope*', |
21 | 21 | 'horizon*', |
|
38 | 38 | | Leaving it to null will allow localhost only. |
39 | 39 | */ |
40 | 40 | 'storage' => [ |
41 | | - 'enabled' => true, |
| 41 | + 'enabled' => env('DEBUGBAR_STORAGE_ENABLED', true), |
42 | 42 | 'open' => env('DEBUGBAR_OPEN_STORAGE'), // bool/callback. |
43 | | - 'driver' => 'file', // redis, file, pdo, socket, custom |
44 | | - 'path' => storage_path('debugbar'), // For file driver |
45 | | - 'connection' => null, // Leave null for default connection (Redis/PDO) |
46 | | - 'provider' => '', // Instance of StorageInterface for custom driver |
47 | | - 'hostname' => '127.0.0.1', // Hostname to use with the "socket" driver |
48 | | - 'port' => 2304, // Port to use with the "socket" driver |
| 43 | + 'driver' => env('DEBUGBAR_STORAGE_DRIVER', 'file'), // redis, file, pdo, socket, custom |
| 44 | + 'path' => env('DEBUGBAR_STORAGE_PATH', storage_path('debugbar')), // For file driver |
| 45 | + 'connection' => env('DEBUGBAR_STORAGE_CONNECTION', null), // Leave null for default connection (Redis/PDO) |
| 46 | + 'provider' => env('DEBUGBAR_STORAGE_PROVIDER', ''), // Instance of StorageInterface for custom driver |
| 47 | + 'hostname' => env('DEBUGBAR_STORAGE_HOSTNAME', '127.0.0.1'), // Hostname to use with the "socket" driver |
| 48 | + 'port' => env('DEBUGBAR_STORAGE_PORT', 2304), // Port to use with the "socket" driver |
49 | 49 | ], |
50 | 50 |
|
51 | 51 | /* |
|
104 | 104 | | |
105 | 105 | */ |
106 | 106 |
|
107 | | - 'include_vendors' => true, |
| 107 | + 'include_vendors' => env('DEBUGBAR_INCLUDE_VENDORS', true), |
108 | 108 |
|
109 | 109 | /* |
110 | 110 | |-------------------------------------------------------------------------- |
|
125 | 125 | | You can defer loading the dataset, so it will be loaded with ajax after the request is done. (Experimental) |
126 | 126 | */ |
127 | 127 |
|
128 | | - 'capture_ajax' => true, |
129 | | - 'add_ajax_timing' => false, |
130 | | - 'ajax_handler_auto_show' => true, |
131 | | - 'ajax_handler_enable_tab' => true, |
132 | | - 'defer_datasets' => false, |
| 128 | + 'capture_ajax' => env('DEBUGBAR_CAPTURE_AJAX', true), |
| 129 | + 'add_ajax_timing' => env('DEBUGBAR_ADD_AJAX_TIMING', false), |
| 130 | + 'ajax_handler_auto_show' => env('DEBUGBAR_AJAX_HANDLER_AUTO_SHOW', true), |
| 131 | + 'ajax_handler_enable_tab' => env('DEBUGBAR_AJAX_HANDLER_ENABLE_TAB', true), |
| 132 | + 'defer_datasets' => env('DEBUGBAR_DEFER_DATASETS', false), |
133 | 133 | /* |
134 | 134 | |-------------------------------------------------------------------------- |
135 | 135 | | Custom Error Handler for Deprecated warnings |
|
139 | 139 | | in the Messages tab. |
140 | 140 | | |
141 | 141 | */ |
142 | | - 'error_handler' => false, |
| 142 | + 'error_handler' => env('DEBUGBAR_ERROR_HANDLER', false), |
143 | 143 |
|
144 | 144 | /* |
145 | 145 | |-------------------------------------------------------------------------- |
|
150 | 150 | | Extension, without the server-side code. It uses Debugbar collectors instead. |
151 | 151 | | |
152 | 152 | */ |
153 | | - 'clockwork' => false, |
| 153 | + 'clockwork' => env('DEBUGBAR_CLOCKWORK', false), |
154 | 154 |
|
155 | 155 | /* |
156 | 156 | |-------------------------------------------------------------------------- |
|
162 | 162 | */ |
163 | 163 |
|
164 | 164 | 'collectors' => [ |
165 | | - 'phpinfo' => false, // Php version |
166 | | - 'messages' => true, // Messages |
167 | | - 'time' => true, // Time Datalogger |
168 | | - 'memory' => true, // Memory usage |
169 | | - 'exceptions' => true, // Exception displayer |
170 | | - 'log' => true, // Logs from Monolog (merged in messages if enabled) |
171 | | - 'db' => true, // Show database (PDO) queries and bindings |
172 | | - 'views' => true, // Views with their data |
173 | | - 'route' => false, // Current route information |
174 | | - 'auth' => false, // Display Laravel authentication status |
175 | | - 'gate' => true, // Display Laravel Gate checks |
176 | | - 'session' => false, // Display session data |
177 | | - 'symfony_request' => true, // Only one can be enabled.. |
178 | | - 'mail' => true, // Catch mail messages |
179 | | - 'laravel' => true, // Laravel version and environment |
180 | | - 'events' => false, // All events fired |
181 | | - 'default_request' => false, // Regular or special Symfony request logger |
182 | | - 'logs' => false, // Add the latest log messages |
183 | | - 'files' => false, // Show the included files |
184 | | - 'config' => false, // Display config settings |
185 | | - 'cache' => false, // Display cache events |
186 | | - 'models' => true, // Display models |
187 | | - 'livewire' => true, // Display Livewire (when available) |
188 | | - 'jobs' => false, // Display dispatched jobs |
189 | | - 'pennant' => false, // Display Pennant feature flags |
| 165 | + 'phpinfo' => env('DEBUGBAR_COLLECTORS_PHPINFO', false), // Php version |
| 166 | + 'messages' => env('DEBUGBAR_COLLECTORS_MESSAGES', true), // Messages |
| 167 | + 'time' => env('DEBUGBAR_COLLECTORS_TIME', true), // Time Datalogger |
| 168 | + 'memory' => env('DEBUGBAR_COLLECTORS_MEMORY', true), // Memory usage |
| 169 | + 'exceptions' => env('DEBUGBAR_COLLECTORS_EXCEPTIONS', true), // Exception displayer |
| 170 | + 'log' => env('DEBUGBAR_COLLECTORS_LOG', true), // Logs from Monolog (merged in messages if enabled) |
| 171 | + 'db' => env('DEBUGBAR_COLLECTORS_DB', true), // Show database (PDO) queries and bindings |
| 172 | + 'views' => env('DEBUGBAR_COLLECTORS_VIEWS', true), // Views with their data |
| 173 | + 'route' => env('DEBUGBAR_COLLECTORS_ROUTE', false), // Current route information |
| 174 | + 'auth' => env('DEBUGBAR_COLLECTORS_AUTH', false), // Display Laravel authentication status |
| 175 | + 'gate' => env('DEBUGBAR_COLLECTORS_GATE', true), // Display Laravel Gate checks |
| 176 | + 'session' => env('DEBUGBAR_COLLECTORS_SESSION', false), // Display session data |
| 177 | + 'symfony_request' => env('DEBUGBAR_COLLECTORS_SYMFONY_REQUEST', true), // Only one can be enabled.. |
| 178 | + 'mail' => env('DEBUGBAR_COLLECTORS_MAIL', true), // Catch mail messages |
| 179 | + 'laravel' => env('DEBUGBAR_COLLECTORS_LARAVEL', true), // Laravel version and environment |
| 180 | + 'events' => env('DEBUGBAR_COLLECTORS_EVENTS', false), // All events fired |
| 181 | + 'default_request' => env('DEBUGBAR_COLLECTORS_DEFAULT_REQUEST', false), // Regular or special Symfony request logger |
| 182 | + 'logs' => env('DEBUGBAR_COLLECTORS_LOGS', false), // Add the latest log messages |
| 183 | + 'files' => env('DEBUGBAR_COLLECTORS_FILES', false), // Show the included files |
| 184 | + 'config' => env('DEBUGBAR_COLLECTORS_CONFIG', false), // Display config settings |
| 185 | + 'cache' => env('DEBUGBAR_COLLECTORS_CACHE', false), // Display cache events |
| 186 | + 'models' => env('DEBUGBAR_COLLECTORS_MODELS', true), // Display models |
| 187 | + 'livewire' => env('DEBUGBAR_COLLECTORS_LIVEWIRE', true), // Display Livewire (when available) |
| 188 | + 'jobs' => env('DEBUGBAR_COLLECTORS_JOBS', false), // Display dispatched jobs |
| 189 | + 'pennant' => env('DEBUGBAR_COLLECTORS_PENNANT', false), // Display Pennant feature flags |
190 | 190 | ], |
191 | 191 |
|
192 | 192 | /* |
|
200 | 200 |
|
201 | 201 | 'options' => [ |
202 | 202 | 'time' => [ |
203 | | - 'memory_usage' => false, // Calculated by subtracting memory start and end, it may be inaccurate |
| 203 | + 'memory_usage' => env('DEBUGBAR_OPTIONS_TIME_MEMORY_USAGE', false), // Calculated by subtracting memory start and end, it may be inaccurate |
204 | 204 | ], |
205 | 205 | 'messages' => [ |
206 | | - 'trace' => true, // Trace the origin of the debug message |
207 | | - 'capture_dumps' => false, // Capture laravel `dump();` as message |
| 206 | + 'trace' => env('DEBUGBAR_OPTIONS_MESSAGES_TRACE', true), // Trace the origin of the debug message |
| 207 | + 'capture_dumps' => env('DEBUGBAR_OPTIONS_MESSAGES_CAPTURE_DUMPS', false), // Capture laravel `dump();` as message |
208 | 208 | ], |
209 | 209 | 'memory' => [ |
210 | | - 'reset_peak' => false, // run memory_reset_peak_usage before collecting |
211 | | - 'with_baseline' => false, // Set boot memory usage as memory peak baseline |
212 | | - 'precision' => 0, // Memory rounding precision |
| 210 | + 'reset_peak' => env('DEBUGBAR_OPTIONS_MEMORY_RESET_PEAK', false), // run memory_reset_peak_usage before collecting |
| 211 | + 'with_baseline' => env('DEBUGBAR_OPTIONS_MEMORY_WITH_BASELINE', false), // Set boot memory usage as memory peak baseline |
| 212 | + 'precision' => (int) env('DEBUGBAR_OPTIONS_MEMORY_PRECISION', 0), // Memory rounding precision |
213 | 213 | ], |
214 | 214 | 'auth' => [ |
215 | | - 'show_name' => true, // Also show the users name/email in the debugbar |
216 | | - 'show_guards' => true, // Show the guards that are used |
| 215 | + 'show_name' => env('DEBUGBAR_OPTIONS_AUTH_SHOW_NAME', true), // Also show the users name/email in the debugbar |
| 216 | + 'show_guards' => env('DEBUGBAR_OPTIONS_AUTH_SHOW_GUARDS', true), // Show the guards that are used |
217 | 217 | ], |
218 | 218 | 'db' => [ |
219 | | - 'with_params' => true, // Render SQL with the parameters substituted |
| 219 | + 'with_params' => env('DEBUGBAR_OPTIONS_WITH_PARAMS', true), // Render SQL with the parameters substituted |
220 | 220 | 'exclude_paths' => [ // Paths to exclude entirely from the collector |
221 | 221 | // 'vendor/laravel/framework/src/Illuminate/Session', // Exclude sessions queries |
222 | 222 | ], |
223 | | - 'backtrace' => true, // Use a backtrace to find the origin of the query in your files. |
| 223 | + 'backtrace' => env('DEBUGBAR_OPTIONS_DB_BACKTRACE', true), // Use a backtrace to find the origin of the query in your files. |
224 | 224 | 'backtrace_exclude_paths' => [], // Paths to exclude from backtrace. (in addition to defaults) |
225 | | - 'timeline' => false, // Add the queries to the timeline |
226 | | - 'duration_background' => true, // Show shaded background on each query relative to how long it took to execute. |
| 225 | + 'timeline' => env('DEBUGBAR_OPTIONS_DB_TIMELINE', false), // Add the queries to the timeline |
| 226 | + 'duration_background' => env('DEBUGBAR_OPTIONS_DB_DURATION_BACKGROUND', true), // Show shaded background on each query relative to how long it took to execute. |
227 | 227 | 'explain' => [ // Show EXPLAIN output on queries |
228 | | - 'enabled' => false, |
| 228 | + 'enabled' => env('DEBUGBAR_OPTIONS_DB_EXPLAIN_ENABLED', false), |
229 | 229 | ], |
230 | | - 'hints' => false, // Show hints for common mistakes |
231 | | - 'show_copy' => true, // Show copy button next to the query, |
232 | | - 'slow_threshold' => false, // Only track queries that last longer than this time in ms |
233 | | - 'memory_usage' => false, // Show queries memory usage |
234 | | - 'soft_limit' => 100, // After the soft limit, no parameters/backtrace are captured |
235 | | - 'hard_limit' => 500, // After the hard limit, queries are ignored |
| 230 | + 'hints' => env('DEBUGBAR_OPTIONS_DB_HINTS', false), // Show hints for common mistakes |
| 231 | + 'show_copy' => env('DEBUGBAR_OPTIONS_DB_SHOW_COPY', true), // Show copy button next to the query, |
| 232 | + 'slow_threshold' => env('DEBUGBAR_OPTIONS_DB_SLOW_THRESHOLD', false), // Only track queries that last longer than this time in ms |
| 233 | + 'memory_usage' => env('DEBUGBAR_OPTIONS_DB_MEMORY_USAGE', false), // Show queries memory usage |
| 234 | + 'soft_limit' => (int) env('DEBUGBAR_OPTIONS_DB_SOFT_LIMIT', 100), // After the soft limit, no parameters/backtrace are captured |
| 235 | + 'hard_limit' => (int) env('DEBUGBAR_OPTIONS_DB_HARD_LIMIT', 500), // After the hard limit, queries are ignored |
236 | 236 | ], |
237 | 237 | 'mail' => [ |
238 | | - 'timeline' => true, // Add mails to the timeline |
239 | | - 'show_body' => true, |
| 238 | + 'timeline' => env('DEBUGBAR_OPTIONS_MAIL_TIMELINE', true), // Add mails to the timeline |
| 239 | + 'show_body' => env('DEBUGBAR_OPTIONS_MAIL_SHOW_BODY', true), |
240 | 240 | ], |
241 | 241 | 'views' => [ |
242 | | - 'timeline' => true, // Add the views to the timeline |
243 | | - 'data' => false, // True for all data, 'keys' for only names, false for no parameters. |
244 | | - 'group' => 50, // Group duplicate views. Pass value to auto-group, or true/false to force |
| 242 | + 'timeline' => env('DEBUGBAR_OPTIONS_VIEWS_TIMELINE', true), // Add the views to the timeline |
| 243 | + 'data' => env('DEBUGBAR_OPTIONS_VIEWS_DATA', false), // True for all data, 'keys' for only names, false for no parameters. |
| 244 | + 'group' => (int) env('DEBUGBAR_OPTIONS_VIEWS_GROUP', 50), // Group duplicate views. Pass value to auto-group, or true/false to force |
245 | 245 | 'exclude_paths' => [ // Add the paths which you don't want to appear in the views |
246 | 246 | 'vendor/filament' // Exclude Filament components by default |
247 | 247 | ], |
248 | 248 | ], |
249 | 249 | 'route' => [ |
250 | | - 'label' => true, // Show complete route on bar |
| 250 | + 'label' => env('DEBUGBAR_OPTIONS_ROUTE_LABEL', true), // Show complete route on bar |
251 | 251 | ], |
252 | 252 | 'session' => [ |
253 | 253 | 'hiddens' => [], // Hides sensitive values using array paths |
254 | 254 | ], |
255 | 255 | 'symfony_request' => [ |
256 | | - 'label' => true, // Show route on bar |
| 256 | + 'label' => env('DEBUGBAR_OPTIONS_SYMFONY_REQUEST_LABEL', true), // Show route on bar |
257 | 257 | 'hiddens' => [], // Hides sensitive values using array paths, example: request_request.password |
258 | 258 | ], |
259 | 259 | 'events' => [ |
260 | | - 'data' => false, // Collect events data, listeners |
| 260 | + 'data' => env('DEBUGBAR_OPTIONS_EVENTS_DATA', false), // Collect events data, listeners |
261 | 261 | ], |
262 | 262 | 'logs' => [ |
263 | | - 'file' => null, |
| 263 | + 'file' => env('DEBUGBAR_OPTIONS_LOGS_FILE', null), |
264 | 264 | ], |
265 | 265 | 'cache' => [ |
266 | | - 'values' => true, // Collect cache values |
| 266 | + 'values' => env('DEBUGBAR_OPTIONS_CACHE_VALUES', true), // Collect cache values |
267 | 267 | ], |
268 | 268 | ], |
269 | 269 |
|
|
278 | 278 | | |
279 | 279 | */ |
280 | 280 |
|
281 | | - 'inject' => true, |
| 281 | + 'inject' => env('DEBUGBAR_INJECT', true), |
282 | 282 |
|
283 | 283 | /* |
284 | 284 | |-------------------------------------------------------------------------- |
|
290 | 290 | | from trying to overcome bugs like this: http://trac.nginx.org/nginx/ticket/97 |
291 | 291 | | |
292 | 292 | */ |
293 | | - 'route_prefix' => '_debugbar', |
| 293 | + 'route_prefix' => env('DEBUGBAR_ROUTE_PREFIX', '_debugbar'), |
294 | 294 |
|
295 | 295 | /* |
296 | 296 | |-------------------------------------------------------------------------- |
|
309 | 309 | | By default Debugbar route served from the same domain that request served. |
310 | 310 | | To override default domain, specify it as a non-empty value. |
311 | 311 | */ |
312 | | - 'route_domain' => null, |
| 312 | + 'route_domain' => env('DEBUGBAR_ROUTE_DOMAIN', null), |
313 | 313 |
|
314 | 314 | /* |
315 | 315 | |-------------------------------------------------------------------------- |
|
329 | 329 | | By default, the Debugbar limits the number of frames returned by the 'debug_backtrace()' function. |
330 | 330 | | If you need larger stacktraces, you can increase this number. Setting it to 0 will result in no limit. |
331 | 331 | */ |
332 | | - 'debug_backtrace_limit' => 50, |
| 332 | + 'debug_backtrace_limit' => (int) env('DEBUGBAR_DEBUG_BACKTRACE_LIMIT', 50), |
333 | 333 | ]; |
0 commit comments