4.x release of Laravel Debugbar
This week, we released a new version of Laravel Debugbar (4.0), one of the most popular Laravel development tools with over 118.000.000 downloads.
This updates brings the updates from the PHP DebugBar package (also maintained by Barry), to the Laravel integration alongside other improvements.
PHP DebugBar 3
The biggest change is compatibility with the php-debugbar 3.x release. This has some major changes:
- Remove jQuery in favor of modern JS
- Improved performance and delayed rendering
- Smaller footprint by removing FontAwesome and minimizing code
- Various fixes and improvements
Improved Dataset Switcher
The new release brings an improved Dataset Switcher. This widget tracks redirects and ajax requests, to quickly switch between requests.
This also brings improvements for Laravel:
- Improved Inertia support; now also tracks the POST/PUT/PATCH requests before redirects
- Improved `wire:navigate` support in Livewire and the Filament 'spa` mode.
- Reduced memory usage for Laravel Octane requests in worker mode.
New Scan feature
For webhooks or API requests that don't have Debugbar enable, there is a new 'Scan' feature, that scans your Debugbar storage and adds new requests to the widget as they appear.
This way you can have Debugbar open in 1 tab and see the API/webhook data appear as it happens.
The autoshow button toggles between directly showing the new data, or only adding it to the widget.
New and Improved Collectors
There is a new HttpClientRequest collector, which monitors the HttpClient calls from your application and shows the request duration, response headers and content.
Besides this, there are also stand-alone collectors for Laravel Livewire, InertiaJS and improvements for existing collectors. Check the config file for all updates!
UI Improvements
There are a lot of small improvements in UI, be sure to check the Settings tab. Some have been added recently:
- Position the Debugbar on top or bottom
- Dark, Light or Auto (system) mode
- Hide empty collectors
- Automatically show new (ajax) requests
More Data
Besides new loggers, the collectors now run earlier and collect data later in the request, so you get more data.
It can also collect console data by starting it manually with debugbar()->enable()
And much more!
Check out the release info on https://github.com/fruitcake/laravel-debugbar/releases/tag/v4.0.0
Don't forget to read the Upgrade Guide and check the demo & documentation at laraveldebugbar.com
Try it now:
composer require fruitcake/laravel-debugbar --dev --with-dependencies
Tip: Coming from barryvdh/laravel-debugbar? You can safely replace that with fruitcake/laravel-debugbar