-
-
Save coderabbi/a34bfc5232f1669d96d37d2ffd50d003 to your computer and use it in GitHub Desktop.
Laravel Debugbar .env Conversion
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DEBUGBAR_STORAGE_ENABLED=true | |
DEBUGBAR_STORAGE_DRIVER='file' | |
DEBUGBAR_STORAGE_PATH='storage/debugbar' | |
DEBUGBAR_STORAGE_CONNECTION=null | |
DEBUGBAR_INCLUDE_VENDORS=true | |
DEBUGBAR_CAPTURE_AJAX=true | |
DEBUGBAR_CLOCKWORK=false | |
DEBUGBAR_COLLECTOR_PHPINFO=true | |
DEBUGBAR_COLLECTOR_MESSAGES=true | |
DEBUGBAR_COLLECTOR_TIME=true | |
DEBUGBAR_COLLECTOR_MEMORY=true | |
DEBUGBAR_COLLECTOR_EXCEPTIONS=true | |
DEBUGBAR_COLLECTOR_LOG=true | |
DEBUGBAR_COLLECTOR_DB=true | |
DEBUGBAR_COLLECTOR_VIEWS=true | |
DEBUGBAR_COLLECTOR_ROUTE=true | |
DEBUGBAR_COLLECTOR_LARAVEL=false | |
DEBUGBAR_COLLECTOR_EVENTS=true | |
DEBUGBAR_COLLECTOR_DEFAULT_REQUEST=true | |
DEBUGBAR_COLLECTOR_SYMFONY_REQUEST=false | |
DEBUGBAR_COLLECTOR_MAIL=true | |
DEBUGBAR_COLLECTOR_LOGS=true | |
DEBUGBAR_COLLECTOR_FILES=true | |
DEBUGBAR_COLLECTOR_CONFIG=true | |
DEBUGBAR_COLLECTOR_AUTH=true | |
DEBUGBAR_COLLECTOR_SESSION=true | |
DEBUGBAR_OPTIONS_AUTH_SHOW_NAME=true | |
DEBUGBAR_OPTIONS_DB_WITH_PARAMS=false | |
DEBUGBAR_OPTIONS_DB_TIMELINE=false | |
DEBUGBAR_OPTIONS_DB_BACKTRACE=false | |
DEBUGBAR_OPTIONS_DB_EXPLAIN_ENABLED=false | |
DEBUGBAR_OPTIONS_DB_EXPLAIN_TYPES='SELECT' | |
DEBUGBAR_OPTIONS_DB_HINTS=true | |
DEBUGBAR_OPTIONS_MAIL_FULL_LOG=true | |
DEBUGBAR_OPTIONS_VIEWS_DATA=true | |
DEBUGBAR_OPTIONS_ROUTE_LABEL=true | |
DEBUGBAR_OPTIONS_LOGS_FILE=null | |
DEBUGBAR_INJECT=true | |
DEBUGBAR_ROUTE_PREFIX='_debugbar' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
return [ | |
/* | |
|-------------------------------------------------------------------------- | |
| Debugbar Settings | |
|-------------------------------------------------------------------------- | |
| | |
| Debugbar is enabled by default, when debug is set to true in app.php. | |
| You can override the value by setting enable to true or false instead of null. | |
| | |
*/ | |
'enabled' => env('APP_DEBUG', false), | |
/* | |
|-------------------------------------------------------------------------- | |
| Storage settings | |
|-------------------------------------------------------------------------- | |
| | |
| DebugBar stores data for session/ajax requests. | |
| You can disable this, so the debugbar stores data in headers/session, | |
| but this can cause problems with large data collectors. | |
| By default, file storage (in the storage folder) is used. Redis and PDO | |
| can also be used. For PDO, run the package migrations first. | |
| | |
*/ | |
'storage' => [ | |
'enabled' => env('DEBUGBAR_STORAGE_ENABLED', true), | |
'driver' => env('DEBUGBAR_STORAGE_DRIVER', 'file'), // redis, file, pdo | |
'path' => env('DEBUGBAR_STORAGE_PATH', storage_path() . '/debugbar'), // For file driver | |
'connection' => env('DEBUGBAR_STORAGE_CONNECTION', null), // Leave null for default connection (Redis/PDO) | |
], | |
/* | |
|-------------------------------------------------------------------------- | |
| Vendors | |
|-------------------------------------------------------------------------- | |
| | |
| Vendor files are included by default, but can be set to false. | |
| This can also be set to 'js' or 'css', to only include javascript or css vendor files. | |
| Vendor files are for css: font-awesome (including fonts) and highlight.js (css files) | |
| and for js: jquery and and highlight.js | |
| So if you want syntax highlighting, set it to true. | |
| jQuery is set to not conflict with existing jQuery scripts. | |
| | |
*/ | |
'include_vendors' => env('DEBUGBAR_INCLUDE_VENDORS', true), | |
/* | |
|-------------------------------------------------------------------------- | |
| Capture Ajax Requests | |
|-------------------------------------------------------------------------- | |
| | |
| The Debugbar can capture Ajax requests and display them. If you don't want this (ie. because of errors), | |
| you can use this option to disable sending the data through the headers. | |
| | |
*/ | |
'capture_ajax' => env('DEBUGBAR_CAPTURE_AJAX', true), | |
/* | |
|-------------------------------------------------------------------------- | |
| Clockwork integration | |
|-------------------------------------------------------------------------- | |
| | |
| The Debugbar can emulate the Clockwork headers, so you can use the Chrome | |
| Extension, without the server-side code. It uses Debugbar collectors instead. | |
| | |
*/ | |
'clockwork' => env('DEBUGBAR_CLOCKWORK', false), | |
/* | |
|-------------------------------------------------------------------------- | |
| DataCollectors | |
|-------------------------------------------------------------------------- | |
| | |
| Enable/disable DataCollectors | |
| | |
*/ | |
'collectors' => [ | |
'phpinfo' => env('DEBUGBAR_COLLECTOR_PHPINFO', true), // Php version | |
'messages' => env('DEBUGBAR_COLLECTOR_MESSAGES', true), // Messages | |
'time' => env('DEBUGBAR_COLLECTOR_TIME', true), // Time Datalogger | |
'memory' => env('DEBUGBAR_COLLECTOR_MEMORY', true), // Memory usage | |
'exceptions' => env('DEBUGBAR_COLLECTOR_EXCEPTIONS', true), // Exception displayer | |
'log' => env('DEBUGBAR_COLLECTOR_LOG', true), // Logs from Monolog (merged in messages if enabled) | |
'db' => env('DEBUGBAR_COLLECTOR_DB', true), // Show database (PDO) queries and bindings | |
'views' => env('DEBUGBAR_COLLECTOR_VIEWS', true), // Views with their data | |
'route' => env('DEBUGBAR_COLLECTOR_ROUTE', true), // Current route information | |
'laravel' => env('DEBUGBAR_COLLECTOR_LARAVEL', false), // Laravel version and environment | |
'events' => env('DEBUGBAR_COLLECTOR_EVENTS', true), // All events fired | |
'default_request' => env('DEBUGBAR_COLLECTOR_DEFAULT_REQUEST', true), // Regular or special Symfony request logger | |
'symfony_request' => env('DEBUGBAR_COLLECTOR_SYMFONY_REQUEST', false), // Only one can be enabled.. | |
'mail' => env('DEBUGBAR_COLLECTOR_MAIL', true), // Catch mail messages | |
'logs' => env('DEBUGBAR_COLLECTOR_LOGS', true), // Add the latest log messages | |
'files' => env('DEBUGBAR_COLLECTOR_FILES', true), // Show the included files | |
'config' => env('DEBUGBAR_COLLECTOR_CONFIG', true), // Display config settings | |
'auth' => env('DEBUGBAR_COLLECTOR_AUTH', true), // Display Laravel authentication status | |
'session' => env('DEBUGBAR_COLLECTOR_SESSION', true), // Display session data | |
], | |
/* | |
|-------------------------------------------------------------------------- | |
| Extra options | |
|-------------------------------------------------------------------------- | |
| | |
| Configure some DataCollectors | |
| | |
*/ | |
'options' => [ | |
'auth' => [ | |
'show_name' => env('DEBUGBAR_OPTIONS_AUTH_SHOW_NAME', true), // Also show the users name/email in the debugbar | |
], | |
'db' => [ | |
'with_params' => env('DEBUGBAR_OPTIONS_DB_WITH_PARAMS',false), // Render SQL with the parameters substituted | |
'timeline' => env('DEBUGBAR_OPTIONS_DB_TIMELINE', false), // Add the queries to the timeline | |
'backtrace' => env('DEBUGBAR_OPTIONS_DB_BACKTRACE', false), // EXPERIMENTAL: Use a backtrace to find the origin of the query in your files. | |
'explain' => [ // EXPERIMENTAL: Show EXPLAIN output on queries | |
'enabled' => env('DEBUGBAR_OPTIONS_DB_EXPLAIN_ENABLED', false), | |
'types' => explode(',', preg_replace('/\s+/', '', env('DEBUGBAR_OPTIONS_DB_EXPLAIN_TYPES', 'SELECT'))), | |
// array('SELECT', 'INSERT', 'UPDATE', 'DELETE'); for MySQL 5.6.3+ | |
], | |
'hints' => env('DEBUGBAR_OPTIONS_DB_HINTS', true), // Show hints for common mistakes | |
], | |
'mail' => [ | |
'full_log' => env('DEBUGBAR_OPTIONS_MAIL_FULL_LOG', true) | |
], | |
'views' => [ | |
'data' => env('DEBUGBAR_OPTIONS_VIEWS_DATA', true), //Note: Can slow down the application, because the data can be quite large.. | |
], | |
'route' => [ | |
'label' => env('DEBUGBAR_OPTIONS_ROUTE_LABEL', true) // show complete route on bar | |
], | |
'logs' => [ | |
'file' => env('DEBUGBAR_OPTIONS_LOGS_FILE', null) | |
], | |
], | |
/* | |
|-------------------------------------------------------------------------- | |
| Inject Debugbar in Response | |
|-------------------------------------------------------------------------- | |
| | |
| Usually, the debugbar is added just before <body>, by listening to the | |
| Response after the App is done. If you disable this, you have to add them | |
| in your template yourself. See http://phpdebugbar.com/docs/rendering.html | |
| | |
*/ | |
'inject' => env('DEBUGBAR_INJECT', true), | |
/* | |
|-------------------------------------------------------------------------- | |
| DebugBar route prefix | |
|-------------------------------------------------------------------------- | |
| | |
| Sometimes you want to set route prefix to be used by DebugBar to load | |
| its resources from. Usually the need comes from misconfigured web server or | |
| from trying to overcome bugs like this: http://trac.nginx.org/nginx/ticket/97 | |
| | |
*/ | |
'route_prefix' => env('DEBUGBAR_ROUTE_PREFIX', '_debugbar'), | |
]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment