├── CHANGELOG.md
├── LICENSE
├── SECURITY.md
├── composer.json
├── config
└── debugbar.php
├── database
└── migrations
│ └── 2014_12_01_120000_create_phpdebugbar_storage_table.php
├── phpcs.xml
├── readme.md
└── src
├── Console
└── ClearCommand.php
├── Controllers
├── AssetController.php
├── BaseController.php
├── CacheController.php
├── OpenHandlerController.php
├── QueriesController.php
└── TelescopeController.php
├── DataCollector
├── CacheCollector.php
├── EventCollector.php
├── FilesCollector.php
├── GateCollector.php
├── JobsCollector.php
├── LaravelCollector.php
├── LivewireCollector.php
├── LogsCollector.php
├── ModelsCollector.php
├── MultiAuthCollector.php
├── PennantCollector.php
├── QueryCollector.php
├── RequestCollector.php
├── RouteCollector.php
├── SessionCollector.php
└── ViewCollector.php
├── DataFormatter
├── QueryFormatter.php
└── SimpleFormatter.php
├── DebugbarViewEngine.php
├── Facade.php
├── Facades
└── Debugbar.php
├── JavascriptRenderer.php
├── LaravelDebugbar.php
├── LumenServiceProvider.php
├── Middleware
├── DebugbarEnabled.php
└── InjectDebugbar.php
├── Resources
├── cache
│ └── widget.js
├── laravel-debugbar.css
└── queries
│ └── widget.js
├── ServiceProvider.php
├── Storage
├── FilesystemStorage.php
└── SocketStorage.php
├── Support
├── Clockwork
│ ├── ClockworkCollector.php
│ └── Converter.php
├── Explain.php
└── RequestIdGenerator.php
├── SymfonyHttpDriver.php
├── Twig
└── Extension
│ ├── Debug.php
│ ├── Dump.php
│ └── Stopwatch.php
├── debugbar-routes.php
└── helpers.php
/CHANGELOG.md:
--------------------------------------------------------------------------------
1 | # Changelog
2 |
3 | ## v3.15.4 - 2025-04-16
4 |
5 | ### What's Changed
6 |
7 | * Remove html `` tag from route on clockwork by @erikn69 in https://github.com/barryvdh/laravel-debugbar/pull/1777
8 | * Fix default for capturing dd/dump by @barryvdh in https://github.com/barryvdh/laravel-debugbar/pull/1783
9 |
10 | **Full Changelog**: https://github.com/barryvdh/laravel-debugbar/compare/v3.15.3...v3.15.4
11 |
12 | ## v3.15.3 - 2025-04-08
13 |
14 | ### What's Changed
15 |
16 | * Add condition for implemented query grammar by @rikwillems in https://github.com/barryvdh/laravel-debugbar/pull/1757
17 | * Collect dumps on message collector by @erikn69 in https://github.com/barryvdh/laravel-debugbar/pull/1759
18 | * Fix `capture_dumps` option on laravel `dd();` by @parallels999 in https://github.com/barryvdh/laravel-debugbar/pull/1762
19 | * Preserve laravel error handler by @erikn69 in https://github.com/barryvdh/laravel-debugbar/pull/1760
20 | * Fix `Trying to access array offset on false on LogsCollector.php` by @erikn69 in https://github.com/barryvdh/laravel-debugbar/pull/1763
21 | * Update css theme for views widget by @erikn69 in https://github.com/barryvdh/laravel-debugbar/pull/1768
22 | * Fix laravel-debugbar.css on query widget by @erikn69 in https://github.com/barryvdh/laravel-debugbar/pull/1765
23 | * Use htmlvardumper if available on CacheCollector by @erikn69 in https://github.com/barryvdh/laravel-debugbar/pull/1766
24 | * Update QueryCollector.php fix issue #1775 by @Mathias-DS in https://github.com/barryvdh/laravel-debugbar/pull/1776
25 | * Better grouping the events count by @erikn69 in https://github.com/barryvdh/laravel-debugbar/pull/1774
26 |
27 | ### New Contributors
28 |
29 | * @rikwillems made their first contribution in https://github.com/barryvdh/laravel-debugbar/pull/1757
30 | * @Mathias-DS made their first contribution in https://github.com/barryvdh/laravel-debugbar/pull/1776
31 |
32 | **Full Changelog**: https://github.com/barryvdh/laravel-debugbar/compare/v3.15.2...v3.15.3
33 |
34 | ## v3.15.2 - 2025-02-25
35 |
36 | ### What's Changed
37 |
38 | * Fix empty tabs on clockwork by @erikn69 in https://github.com/barryvdh/laravel-debugbar/pull/1750
39 | * fix: Ignore info query statements in Clockwork converter by @boserup in https://github.com/barryvdh/laravel-debugbar/pull/1749
40 | * Check if request controller is string by @barryvdh in https://github.com/barryvdh/laravel-debugbar/pull/1751
41 |
42 | ### New Contributors
43 |
44 | * @boserup made their first contribution in https://github.com/barryvdh/laravel-debugbar/pull/1749
45 |
46 | **Full Changelog**: https://github.com/barryvdh/laravel-debugbar/compare/v3.15.1...v3.15.2
47 |
48 | ## v3.15.1 - 2025-02-24
49 |
50 | ### What's Changed
51 |
52 | * Hide more empty tabs by @erikn69 in https://github.com/barryvdh/laravel-debugbar/pull/1742
53 | * Always show application by @barryvdh in https://github.com/barryvdh/laravel-debugbar/pull/1745
54 | * Add conflict with old debugbar by @barryvdh in https://github.com/barryvdh/laravel-debugbar/pull/1746
55 |
56 | **Full Changelog**: https://github.com/barryvdh/laravel-debugbar/compare/v3.15.0...v3.15.1
57 |
58 | ## v3.15.0 - 2025-02-21
59 |
60 | ### What's Changed
61 |
62 | * Add middleware to web to save session by @barryvdh in https://github.com/barryvdh/laravel-debugbar/pull/1710
63 | * Check web middleware by @barryvdh in https://github.com/barryvdh/laravel-debugbar/pull/1712
64 | * Add special `dev` to composer keywords by @jnoordsij in https://github.com/barryvdh/laravel-debugbar/pull/1713
65 | * Removed extra sentence by @cheack in https://github.com/barryvdh/laravel-debugbar/pull/1714
66 | * Hide empty tabs by default by @barryvdh in https://github.com/barryvdh/laravel-debugbar/pull/1711
67 | * Combine route info with Request by @barryvdh in https://github.com/barryvdh/laravel-debugbar/pull/1720
68 | * fix: The log is not processed correctly when it consists of multiple lines. by @uniho in https://github.com/barryvdh/laravel-debugbar/pull/1721
69 | * [WIP] Use php-debugbar dark theme, move to variables by @barryvdh in https://github.com/barryvdh/laravel-debugbar/pull/1717
70 | * Remove openhandler overrides by @barryvdh in https://github.com/barryvdh/laravel-debugbar/pull/1723
71 | * Drop Lumen And Laravel 9 by @barryvdh in https://github.com/barryvdh/laravel-debugbar/pull/1725
72 | * Use tooltip for Laravel collector by @barryvdh in https://github.com/barryvdh/laravel-debugbar/pull/1724
73 | * Add more data to timeline by @barryvdh in https://github.com/barryvdh/laravel-debugbar/pull/1726
74 | * Laravel version preview as repo branch name by @angeljqv in https://github.com/barryvdh/laravel-debugbar/pull/1727
75 | * Laravel 12 support by @jonnott in https://github.com/barryvdh/laravel-debugbar/pull/1730
76 | * Preview action_name on request tooltip by @angeljqv in https://github.com/barryvdh/laravel-debugbar/pull/1728
77 | * Map tooltips by @barryvdh in https://github.com/barryvdh/laravel-debugbar/pull/1732
78 | * Add back L9 by @barryvdh in https://github.com/barryvdh/laravel-debugbar/pull/1734
79 | * Fix tooltip url by @barryvdh in https://github.com/barryvdh/laravel-debugbar/pull/1735
80 | * Show request status as badge by @barryvdh in https://github.com/barryvdh/laravel-debugbar/pull/1736
81 | * Fix request badge by @barryvdh in https://github.com/barryvdh/laravel-debugbar/pull/1737
82 | * Use Laravel ULID for key by @barryvdh in https://github.com/barryvdh/laravel-debugbar/pull/1738
83 | * defer datasets by config option by @erikn69 in https://github.com/barryvdh/laravel-debugbar/pull/1739
84 | * Reorder request tab by @barryvdh in https://github.com/barryvdh/laravel-debugbar/pull/1740
85 | * Defer config by @barryvdh in https://github.com/barryvdh/laravel-debugbar/pull/1741
86 |
87 | ### New Contributors
88 |
89 | * @cheack made their first contribution in https://github.com/barryvdh/laravel-debugbar/pull/1714
90 | * @angeljqv made their first contribution in https://github.com/barryvdh/laravel-debugbar/pull/1727
91 | * @jonnott made their first contribution in https://github.com/barryvdh/laravel-debugbar/pull/1730
92 |
93 | **Full Changelog**: https://github.com/barryvdh/laravel-debugbar/compare/v3.14.10...v3.15.0
94 |
95 | ## v3.14.10 - 2024-12-23
96 |
97 | ### What's Changed
98 |
99 | * Fix Debugbar spelling inconsistencies by @ralphjsmit in https://github.com/barryvdh/laravel-debugbar/pull/1626
100 | * Fix Visual Explain confirm message by @barryvdh in https://github.com/barryvdh/laravel-debugbar/pull/1709
101 |
102 | ### New Contributors
103 |
104 | * @ralphjsmit made their first contribution in https://github.com/barryvdh/laravel-debugbar/pull/1626
105 |
106 | **Full Changelog**: https://github.com/barryvdh/laravel-debugbar/compare/v3.14.9...v3.14.10
107 |
108 | ## v3.14.9 - 2024-11-25
109 |
110 | ### What's Changed
111 |
112 | * Fix custom prototype array by @barryvdh in https://github.com/barryvdh/laravel-debugbar/pull/1706
113 |
114 | **Full Changelog**: https://github.com/barryvdh/laravel-debugbar/compare/v3.14.8...v3.14.9
115 |
116 | ## v3.14.8 - 2024-11-25
117 |
118 | ### What's Changed
119 |
120 | * Add fix + failing test for custom array prototype by @barryvdh in https://github.com/barryvdh/laravel-debugbar/pull/1705
121 |
122 | **Full Changelog**: https://github.com/barryvdh/laravel-debugbar/compare/v3.14.7...v3.14.8
123 |
124 | ## v3.14.7 - 2024-11-14
125 |
126 | ### What's Changed
127 |
128 | * Make better use of query tab space by @erikn69 in https://github.com/barryvdh/laravel-debugbar/pull/1694
129 | * Do not open query details on text selecting by @erikn69 in https://github.com/barryvdh/laravel-debugbar/pull/1693
130 | * Add (initial) support for PHP 8.4 by @jnoordsij in https://github.com/barryvdh/laravel-debugbar/pull/1631
131 | * More warnings by @barryvdh in https://github.com/barryvdh/laravel-debugbar/pull/1696
132 | * Fix sql-duplicate highlight by @erikn69 in https://github.com/barryvdh/laravel-debugbar/pull/1699
133 | * ci: Use GitHub Actions V4 by @erikn69 in https://github.com/barryvdh/laravel-debugbar/pull/1700
134 | * Fix "Uncaught TypeError: is not iterable" by @erikn69 in https://github.com/barryvdh/laravel-debugbar/pull/1701
135 | * Fix Exception when QueryCollector softLimit exceeded by @johnkary in https://github.com/barryvdh/laravel-debugbar/pull/1702
136 | * Test soft/hard limit queries by @barryvdh in https://github.com/barryvdh/laravel-debugbar/pull/1703
137 |
138 | ### New Contributors
139 |
140 | * @johnkary made their first contribution in https://github.com/barryvdh/laravel-debugbar/pull/1702
141 |
142 | **Full Changelog**: https://github.com/barryvdh/laravel-debugbar/compare/v3.14.6...v3.14.7
143 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | Copyright (C) 2013-present Barry vd. Heuvel
2 |
3 | Permission is hereby granted, free of charge, to any person obtaining a copy of
4 | this software and associated documentation files (the "Software"), to deal in
5 | the Software without restriction, including without limitation the rights to
6 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
7 | of the Software, and to permit persons to whom the Software is furnished to do
8 | so, subject to the following conditions:
9 |
10 | The above copyright notice and this permission notice shall be included in all
11 | copies or substantial portions of the Software.
12 |
13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19 | SOFTWARE.
20 |
--------------------------------------------------------------------------------
/SECURITY.md:
--------------------------------------------------------------------------------
1 | # Security Policy
2 |
3 | ## Reporting a Vulnerability
4 |
5 | Please report security issues to `barryvdh@gmail.com`
6 |
--------------------------------------------------------------------------------
/composer.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "barryvdh/laravel-debugbar",
3 | "description": "PHP Debugbar integration for Laravel",
4 | "keywords": [
5 | "laravel",
6 | "debugbar",
7 | "profiler",
8 | "debug",
9 | "webprofiler",
10 | "dev"
11 | ],
12 | "license": "MIT",
13 | "authors": [
14 | {
15 | "name": "Barry vd. Heuvel",
16 | "email": "barryvdh@gmail.com"
17 | }
18 | ],
19 | "require": {
20 | "php": "^8.1",
21 | "php-debugbar/php-debugbar": "~2.2.0",
22 | "illuminate/routing": "^9|^10|^11|^12",
23 | "illuminate/session": "^9|^10|^11|^12",
24 | "illuminate/support": "^9|^10|^11|^12",
25 | "symfony/finder": "^6|^7"
26 | },
27 | "require-dev": {
28 | "mockery/mockery": "^1.3.3",
29 | "orchestra/testbench-dusk": "^7|^8|^9|^10",
30 | "phpunit/phpunit": "^9.5.10|^10|^11",
31 | "squizlabs/php_codesniffer": "^3.5"
32 | },
33 | "autoload": {
34 | "psr-4": {
35 | "Barryvdh\\Debugbar\\": "src/"
36 | },
37 | "files": [
38 | "src/helpers.php"
39 | ]
40 | },
41 | "autoload-dev": {
42 | "psr-4": {
43 | "Barryvdh\\Debugbar\\Tests\\": "tests"
44 | }
45 | },
46 | "minimum-stability": "dev",
47 | "prefer-stable": true,
48 | "extra": {
49 | "branch-alias": {
50 | "dev-master": "3.16-dev"
51 | },
52 | "laravel": {
53 | "providers": [
54 | "Barryvdh\\Debugbar\\ServiceProvider"
55 | ],
56 | "aliases": {
57 | "Debugbar": "Barryvdh\\Debugbar\\Facades\\Debugbar"
58 | }
59 | }
60 | },
61 | "scripts": {
62 | "check-style": "phpcs",
63 | "fix-style": "phpcbf",
64 | "test": "phpunit"
65 | }
66 | }
67 |
--------------------------------------------------------------------------------
/config/debugbar.php:
--------------------------------------------------------------------------------
1 | env('DEBUGBAR_ENABLED', null),
18 | 'hide_empty_tabs' => env('DEBUGBAR_HIDE_EMPTY_TABS', true), // Hide tabs until they have content
19 | 'except' => [
20 | 'telescope*',
21 | 'horizon*',
22 | ],
23 |
24 | /*
25 | |--------------------------------------------------------------------------
26 | | Storage settings
27 | |--------------------------------------------------------------------------
28 | |
29 | | Debugbar stores data for session/ajax requests.
30 | | You can disable this, so the debugbar stores data in headers/session,
31 | | but this can cause problems with large data collectors.
32 | | By default, file storage (in the storage folder) is used. Redis and PDO
33 | | can also be used. For PDO, run the package migrations first.
34 | |
35 | | Warning: Enabling storage.open will allow everyone to access previous
36 | | request, do not enable open storage in publicly available environments!
37 | | Specify a callback if you want to limit based on IP or authentication.
38 | | Leaving it to null will allow localhost only.
39 | */
40 | 'storage' => [
41 | 'enabled' => env('DEBUGBAR_STORAGE_ENABLED', true),
42 | 'open' => env('DEBUGBAR_OPEN_STORAGE'), // bool/callback.
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 | ],
50 |
51 | /*
52 | |--------------------------------------------------------------------------
53 | | Editor
54 | |--------------------------------------------------------------------------
55 | |
56 | | Choose your preferred editor to use when clicking file name.
57 | |
58 | | Supported: "phpstorm", "vscode", "vscode-insiders", "vscode-remote",
59 | | "vscode-insiders-remote", "vscodium", "textmate", "emacs",
60 | | "sublime", "atom", "nova", "macvim", "idea", "netbeans",
61 | | "xdebug", "espresso"
62 | |
63 | */
64 |
65 | 'editor' => env('DEBUGBAR_EDITOR') ?: env('IGNITION_EDITOR', 'phpstorm'),
66 |
67 | /*
68 | |--------------------------------------------------------------------------
69 | | Remote Path Mapping
70 | |--------------------------------------------------------------------------
71 | |
72 | | If you are using a remote dev server, like Laravel Homestead, Docker, or
73 | | even a remote VPS, it will be necessary to specify your path mapping.
74 | |
75 | | Leaving one, or both of these, empty or null will not trigger the remote
76 | | URL changes and Debugbar will treat your editor links as local files.
77 | |
78 | | "remote_sites_path" is an absolute base path for your sites or projects
79 | | in Homestead, Vagrant, Docker, or another remote development server.
80 | |
81 | | Example value: "/home/vagrant/Code"
82 | |
83 | | "local_sites_path" is an absolute base path for your sites or projects
84 | | on your local computer where your IDE or code editor is running on.
85 | |
86 | | Example values: "/Users//Code", "C:\Users\\Documents\Code"
87 | |
88 | */
89 |
90 | 'remote_sites_path' => env('DEBUGBAR_REMOTE_SITES_PATH'),
91 | 'local_sites_path' => env('DEBUGBAR_LOCAL_SITES_PATH', env('IGNITION_LOCAL_SITES_PATH')),
92 |
93 | /*
94 | |--------------------------------------------------------------------------
95 | | Vendors
96 | |--------------------------------------------------------------------------
97 | |
98 | | Vendor files are included by default, but can be set to false.
99 | | This can also be set to 'js' or 'css', to only include javascript or css vendor files.
100 | | Vendor files are for css: font-awesome (including fonts) and highlight.js (css files)
101 | | and for js: jquery and highlight.js
102 | | So if you want syntax highlighting, set it to true.
103 | | jQuery is set to not conflict with existing jQuery scripts.
104 | |
105 | */
106 |
107 | 'include_vendors' => env('DEBUGBAR_INCLUDE_VENDORS', true),
108 |
109 | /*
110 | |--------------------------------------------------------------------------
111 | | Capture Ajax Requests
112 | |--------------------------------------------------------------------------
113 | |
114 | | The Debugbar can capture Ajax requests and display them. If you don't want this (ie. because of errors),
115 | | you can use this option to disable sending the data through the headers.
116 | |
117 | | Optionally, you can also send ServerTiming headers on ajax requests for the Chrome DevTools.
118 | |
119 | | Note for your request to be identified as ajax requests they must either send the header
120 | | X-Requested-With with the value XMLHttpRequest (most JS libraries send this), or have application/json as a Accept header.
121 | |
122 | | By default `ajax_handler_auto_show` is set to true allowing ajax requests to be shown automatically in the Debugbar.
123 | | Changing `ajax_handler_auto_show` to false will prevent the Debugbar from reloading.
124 | |
125 | | You can defer loading the dataset, so it will be loaded with ajax after the request is done. (Experimental)
126 | */
127 |
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 | /*
134 | |--------------------------------------------------------------------------
135 | | Custom Error Handler for Deprecated warnings
136 | |--------------------------------------------------------------------------
137 | |
138 | | When enabled, the Debugbar shows deprecated warnings for Symfony components
139 | | in the Messages tab.
140 | |
141 | */
142 | 'error_handler' => env('DEBUGBAR_ERROR_HANDLER', false),
143 |
144 | /*
145 | |--------------------------------------------------------------------------
146 | | Clockwork integration
147 | |--------------------------------------------------------------------------
148 | |
149 | | The Debugbar can emulate the Clockwork headers, so you can use the Chrome
150 | | Extension, without the server-side code. It uses Debugbar collectors instead.
151 | |
152 | */
153 | 'clockwork' => env('DEBUGBAR_CLOCKWORK', false),
154 |
155 | /*
156 | |--------------------------------------------------------------------------
157 | | DataCollectors
158 | |--------------------------------------------------------------------------
159 | |
160 | | Enable/disable DataCollectors
161 | |
162 | */
163 |
164 | 'collectors' => [
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 | ],
191 |
192 | /*
193 | |--------------------------------------------------------------------------
194 | | Extra options
195 | |--------------------------------------------------------------------------
196 | |
197 | | Configure some DataCollectors
198 | |
199 | */
200 |
201 | 'options' => [
202 | 'time' => [
203 | 'memory_usage' => env('DEBUGBAR_OPTIONS_TIME_MEMORY_USAGE', false), // Calculated by subtracting memory start and end, it may be inaccurate
204 | ],
205 | 'messages' => [
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 | ],
209 | 'memory' => [
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 | ],
214 | 'auth' => [
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 | ],
218 | 'gate' => [
219 | 'trace' => false, // Trace the origin of the Gate checks
220 | ],
221 | 'db' => [
222 | 'with_params' => env('DEBUGBAR_OPTIONS_WITH_PARAMS', true), // Render SQL with the parameters substituted
223 | 'exclude_paths' => [ // Paths to exclude entirely from the collector
224 | //'vendor/laravel/framework/src/Illuminate/Session', // Exclude sessions queries
225 | ],
226 | 'backtrace' => env('DEBUGBAR_OPTIONS_DB_BACKTRACE', true), // Use a backtrace to find the origin of the query in your files.
227 | 'backtrace_exclude_paths' => [], // Paths to exclude from backtrace. (in addition to defaults)
228 | 'timeline' => env('DEBUGBAR_OPTIONS_DB_TIMELINE', false), // Add the queries to the timeline
229 | 'duration_background' => env('DEBUGBAR_OPTIONS_DB_DURATION_BACKGROUND', true), // Show shaded background on each query relative to how long it took to execute.
230 | 'explain' => [ // Show EXPLAIN output on queries
231 | 'enabled' => env('DEBUGBAR_OPTIONS_DB_EXPLAIN_ENABLED', false),
232 | ],
233 | 'hints' => env('DEBUGBAR_OPTIONS_DB_HINTS', false), // Show hints for common mistakes
234 | 'show_copy' => env('DEBUGBAR_OPTIONS_DB_SHOW_COPY', true), // Show copy button next to the query,
235 | 'slow_threshold' => env('DEBUGBAR_OPTIONS_DB_SLOW_THRESHOLD', false), // Only track queries that last longer than this time in ms
236 | 'memory_usage' => env('DEBUGBAR_OPTIONS_DB_MEMORY_USAGE', false), // Show queries memory usage
237 | 'soft_limit' => (int) env('DEBUGBAR_OPTIONS_DB_SOFT_LIMIT', 100), // After the soft limit, no parameters/backtrace are captured
238 | 'hard_limit' => (int) env('DEBUGBAR_OPTIONS_DB_HARD_LIMIT', 500), // After the hard limit, queries are ignored
239 | ],
240 | 'mail' => [
241 | 'timeline' => env('DEBUGBAR_OPTIONS_MAIL_TIMELINE', true), // Add mails to the timeline
242 | 'show_body' => env('DEBUGBAR_OPTIONS_MAIL_SHOW_BODY', true),
243 | ],
244 | 'views' => [
245 | 'timeline' => env('DEBUGBAR_OPTIONS_VIEWS_TIMELINE', true), // Add the views to the timeline
246 | 'data' => env('DEBUGBAR_OPTIONS_VIEWS_DATA', false), // True for all data, 'keys' for only names, false for no parameters.
247 | 'group' => (int) env('DEBUGBAR_OPTIONS_VIEWS_GROUP', 50), // Group duplicate views. Pass value to auto-group, or true/false to force
248 | 'inertia_pages' => env('DEBUGBAR_OPTIONS_VIEWS_INERTIA_PAGES', 'js/Pages'), // Path for Inertia views
249 | 'exclude_paths' => [ // Add the paths which you don't want to appear in the views
250 | 'vendor/filament' // Exclude Filament components by default
251 | ],
252 | ],
253 | 'route' => [
254 | 'label' => env('DEBUGBAR_OPTIONS_ROUTE_LABEL', true), // Show complete route on bar
255 | ],
256 | 'session' => [
257 | 'hiddens' => [], // Hides sensitive values using array paths
258 | ],
259 | 'symfony_request' => [
260 | 'label' => env('DEBUGBAR_OPTIONS_SYMFONY_REQUEST_LABEL', true), // Show route on bar
261 | 'hiddens' => [], // Hides sensitive values using array paths, example: request_request.password
262 | ],
263 | 'events' => [
264 | 'data' => env('DEBUGBAR_OPTIONS_EVENTS_DATA', false), // Collect events data, listeners
265 | 'excluded' => [], // Example: ['eloquent.*', 'composing', Illuminate\Cache\Events\CacheHit::class]
266 | ],
267 | 'logs' => [
268 | 'file' => env('DEBUGBAR_OPTIONS_LOGS_FILE', null),
269 | ],
270 | 'cache' => [
271 | 'values' => env('DEBUGBAR_OPTIONS_CACHE_VALUES', true), // Collect cache values
272 | ],
273 | ],
274 |
275 | /*
276 | |--------------------------------------------------------------------------
277 | | Inject Debugbar in Response
278 | |--------------------------------------------------------------------------
279 | |
280 | | Usually, the debugbar is added just before