Package
Barryvdh Laravel Debugbar
PHP Debugbar integration for Laravel
Overview
What Barryvdh Laravel Debugbar does
The barryvdh/laravel-debugbar integrates PHP Debug Bar with Laravel, providing developers a robust tool for debugging and performance profiling in their Laravel applications.
Designed specifically for development environments, Laravel Debugbar attaches a comprehensive debug panel to an application's output. It captures and presents data about routes, queries, and the current environment, helping developers gain detailed insights into their application's inner workings. The package warns against use in production due to potential information leakage and performance hits.
Developers can leverage a variety of data collectors included with the package. The QueryCollector tracks database queries including their binding and execution time, and the ViewCollector shows currently loaded views, with an option to display shared data. Additionally, the package includes collectors for routes, events, log messages, and more, providing a full picture of what's happening in an application.
Laravel Debugbar is easy to set up thanks to Laravel's package auto-discovery. It activates automatically when `APP_DEBUG` is set to true and the environment is not set to production or testing. The tool can be further configured via the `debugbar.php` config file, offering control over which assets to use and whether certain collectors are enabled.
Developers can interact with the debug bar through a facade which simplifies logging messages, exceptions, and measures. This functionality, alongside the ability to add custom data collectors, makes Laravel Debugbar a flexible tool that integrates seamlessly into the development workflow. Its compatibility with Octane ensures that it runs smoothly in various Laravel setups.
This overview was generated by AI from the package README and may not reflect the latest release.
Read the full README →