Repolode
fruitcake

fruitcake/laravel-debugbar

A Laravel package that integrates PHP Debug Bar, adding a development toolbar with queries, routes, views, events, logs and more.

Stars
19,296
Forks
1,612
Open issues
77
Last commit
10 days ago

What is it?

Laravel Debugbar integrates the PHP Debug Bar into Laravel applications. It registers a service provider that attaches a debug toolbar to rendered pages, and it ships with collectors tailored to Laravel, such as query logging with bindings and timing, current route details, loaded views, dispatched events, cache events and mail messages.

The toolbar also shows redirects and AJAX or Livewire requests in a dropdown, and it exposes a facade for adding custom messages, timers and exceptions. Each collector can be enabled or disabled in the config, and the package can be configured to include or exclude its bundled frontend assets.

The project is intended for local development only, since stored request data can expose sensitive information and collecting it adds overhead to each request. It is installed as a dev dependency via Composer, and it also supports Laravel Octane and Twig templates through bundled extensions.

Key features

  • 01Shows SQL queries with bindings and timing
  • 02Displays current route, loaded views and dispatched events
  • 03Lists log messages, mail messages and cache events
  • 04Records custom messages, timers and exceptions via a facade
  • 05Browses stored previous requests and shows redirects and AJAX/Livewire requests

Use cases

  • Diagnosing slow pages by inspecting query counts and timings during development
  • Debugging route, view and event flow in a Laravel application
  • Inspecting AJAX or Livewire requests while building interactive features

Quick start

  1. 1

    Require the package with Composer as a dev dependency

    composer require fruitcake/laravel-debugbar --dev
  2. 2

    Publish the package config to your local config (optional)

    php artisan vendor:publish --provider='Fruitcake\LaravelDebugbar\ServiceProvider'

Things to know

  • Only use it in development; it leaks request information and must not be exposed on public websites.
  • It can slow the application down, so disable collectors if performance suffers.

Topics

FAQ

What is laravel-debugbar?
A Laravel package that integrates PHP Debug Bar, adding a development toolbar with queries, routes, views, events, logs and more. Laravel Debugbar integrates the PHP Debug Bar into Laravel applications. It registers a service provider that attaches a debug toolbar to rendered pages, and it ships with collectors tailored to Laravel, such as query logging with bindings and timing, current route details, loaded views, dispatched events, cache events and mail messages.
Is laravel-debugbar free to use? What license does it have?
laravel-debugbar is open source under the MIT license. Check the license terms before using it in commercial products.
Is laravel-debugbar still maintained?
Actively maintained. The last commit to laravel-debugbar was on Oct 28, 2026.
What can I use laravel-debugbar for?
Diagnosing slow pages by inspecting query counts and timings during development Debugging route, view and event flow in a Laravel application Inspecting AJAX or Livewire requests while building interactive features
How do I install laravel-debugbar?
Require the package with Composer as a dev dependency: composer require fruitcake/laravel-debugbar --dev Publish the package config to your local config (optional): php artisan vendor:publish --provider='Fruitcake\LaravelDebugbar\ServiceProvider'
Where can I get laravel-debugbar?
The source code and installation instructions are on GitHub: https://github.com/fruitcake/laravel-debugbar

Summary generated by AI from the project's README. GitHub stats refresh daily.

Related projects