Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message
Laravel Debugbar

Laravel Debugbar Laravel Package

fruitcake/laravel-debugbar

Integrates PHP Debug Bar with Laravel to show queries, routes, views, timings, memory, logs, and request data in a handy toolbar during development. Easy to install, configurable, and disabled by default in production.

View on GitHub
Deep Wiki
Context7

Laravel Debugbar brings the PHP Debug Bar to Laravel, adding a developer toolbar that reveals what happens during each request—without leaving the browser. It hooks into the framework automatically, so queries, routes, views, and exceptions are collected with almost no configuration.

Enable it locally, keep it off in production, and use the panel to diagnose slow pages or unexpected behavior.

  • Query profiling with bindings, timings, and duplicate detection
  • Performance metrics for memory, load time, and timeline
  • Collectors for views, routes, events, cache, models, and logs
  • Exception and request inspection in a single panel
  • Easy toggling via config or environment variables
Frequently asked questions about Laravel Debugbar
How do I install and enable fruitcake/laravel-debugbar in Laravel?
Run `composer require fruitcake/laravel-debugbar`, then register the service provider in `config/app.php` under `providers`. Enable it via `debugbar.middleware` in `.env` (default: `APP_DEBUG=true`). No additional steps are needed for basic usage.
Does fruitcake/laravel-debugbar work with Laravel 10+ and PHP 8.3?
Yes, the package supports Laravel 10+ and PHP 8.3+. Version 4.2.x explicitly targets Laravel 13.x, but check the [GitHub releases](https://github.com/fruitcake/laravel-debugbar/releases) for compatibility notes if using older versions.
Can I use this package in production? What are the risks?
The package is **disabled by default in production** (when `APP_DEBUG=false`). Enabling it exposes sensitive data like query params or request payloads. Use `DEBUGBAR_FORCE_ALLOW_ENABLE` sparingly and restrict access via IP or environment flags.
How do I track slow database queries with this debugbar?
Enable query logging in `config/debugbar.php` by setting `query_explain_local_only` or `query_explain`. The toolbar will show execution times, explain plans, and duplicate queries. For CLI jobs, use `debugbar:query` Artisan command.
Is there a way to customize or extend the debugbar collectors?
Yes, you can add custom collectors by registering them via `Debugbar::collector(new CustomCollector())`. The package supports third-party extensions (e.g., Livewire, Inertia.js) and provides hooks for logging domain-specific metrics.
Will this package slow down my Laravel application in debug mode?
Minimal overhead is added (~5–10ms per request) due to query explain plans and data collection. Disable it in production or use `debugbar:storage` to log data without real-time rendering. Monitor performance with `debugbar:clear` commands.
How do I hide sensitive data (e.g., auth tokens, passwords) from the debugbar?
Use the `blacklist` option in `config/debugbar.php` to exclude collectors (e.g., `AuthCollector`). For dynamic filtering, implement a custom collector with `Debugbar::collector()` and override sensitive data handling.
Can I integrate fruitcake/laravel-debugbar with Laravel Telescope or Clockwork?
Yes, the package is designed to complement other debugging tools. Use it for real-time inspection while leveraging Telescope for persistent storage or Clockwork for API-focused debugging. Avoid redundancy by disabling overlapping collectors.
Does this package support debugging CLI commands or scheduled jobs?
Yes, use the `debugbar:clear` and `debugbar:query` Artisan commands to inspect CLI jobs. For scheduled tasks, ensure the debugbar middleware is enabled in your `app/Console/Kernel.php` or via environment flags.
What alternatives exist if I need more advanced debugging features?
For deeper observability, consider Laravel Telescope (persistent logs) or Clockwork (API-focused). For AI-assisted debugging, pair with Laravel Boost. If you need custom metrics, extend this package’s collectors or use a dedicated APM like Datadog.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
microsoft/fluentui-system-icons
mmccook/php-json-canonicalization-scheme
middlewares/firewall
qubiqx/montapacking
nyoncode/laravel-package-console
pnscripts/filament-broadquill-lite
pnscripts/laravel-sentfold-lite
vleap/mx-sdk-laravel-internal
twidpay/utils
htetmyathlaing/scout-elasticsearch-driver
artisan-toolbox/front-awesome
ls/client-assistant
users-au/laravel-client
cgv/localized-resource
noith/settings
kda/laravel-package
kda/filament-dynamic-navigation
bypersoft/signbox
pairus/product-data
fayne/laravel-filament-cms-core