Skip to content

Commit be9177a

Browse files
committed
I guess we never added this.
1 parent eaeb427 commit be9177a

File tree

1 file changed

+169
-0
lines changed

1 file changed

+169
-0
lines changed

config/debugbar.php

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

0 commit comments

Comments
 (0)