Laravel Debugbar attaches a request profiler to Laravel apps during development. It surfaces queries, routes, views, events, mail, and timing in the browser.
Overview
Laravel Debugbar is a Composer package that wires PHP Debug Bar into Laravel applications. A service provider registers the toolbar and collectors so diagnostics appear with normal HTML responses.
Built-in collectors cover database queries with bindings and timings, the active route, loaded views with optional shared data, fired events, mail, logs, cache activity, configuration values, and included PHP files. Default collectors also track memory, exceptions, messages, and application boot timing.
Redirects and Ajax or Livewire requests appear in a dropdown. Developers can log through a facade or helper functions, add custom data collectors, and enable or disable the bar at runtime when debugging production-like environments.
The bar is intended for local development only. Stored request history is limited to localhost or private networks unless explicitly opened, because exposing it on public sites can leak sensitive request data.
Key features
- SQL query collector with bindings and timing
- Route, view, and event inspectors
- Ajax and Livewire request dropdown
- Mail, log, and cache collectors
- Facade and helper timing and logging
- Custom data collector registration
- Runtime enable and disable switches
- Optional Twig dump and debug extensions
Use cases
- Inspecting Laravel database queries locally
- Profiling route and view rendering cost
- Debugging mail and event side effects
- Timing code paths during development