explaingit

fruitcake/laravel-debugbar

📈 Trending19,218PHPAudience · developerComplexity · 2/5ActiveLicenseSetup · easy

TLDR

A developer toolbar for Laravel apps that shows database queries, page load times, logs, and other diagnostic info to help debug performance and behavior issues during development.

Mindmap

mindmap
  root((repo))
    What it does
      Shows database queries
      Displays page timings
      Logs messages
      Tracks events
    How to use
      Install via Composer
      Activates in debug mode
      Add custom measurements
      View in browser panel
    Use cases
      Debug slow pages
      Find query issues
      Trace request flow
      Monitor memory usage
    Tech stack
      PHP
      Laravel framework
      Composer

Things people build with this

USE CASE 1

Debug why a page is loading slowly by inspecting all database queries and their execution times.

USE CASE 2

Trace which routes, views, and events are being triggered during a request.

USE CASE 3

Monitor memory usage and cache activity to identify performance bottlenecks.

USE CASE 4

Add custom timing measurements and log messages from your PHP code to track specific operations.

Tech stack

PHPLaravel

Getting it running

Difficulty · easy Time to first run · 5min
Use freely for any purpose, including commercial use, as long as you keep the copyright notice.

In plain English

Laravel Debugbar is a PHP package that adds a developer toolbar to your Laravel web application during local development. When you are building a Laravel app and something is running slowly or behaving unexpectedly, it is often hard to see what queries the database is running, which views are being loaded, or how long different parts of the request are taking. The debugbar solves this by injecting a visible panel at the bottom of every page you view in your browser, packed with diagnostic information. It shows you all the database queries that ran (including the time each one took and the exact values passed in), which routes and views were used, all log messages, events fired, cache activity, memory usage, and more. You can also add your own timing measurements or log custom messages directly from your PHP code using a simple facade, a clean interface that looks like calling static methods on a class. You would use Laravel Debugbar during local development to debug slow pages, unexpected behavior, or database query issues. It should never be enabled on a live public website because it exposes internal request data. Install it as a development-only dependency via Composer and it automatically activates when your app is in debug mode.

Copy-paste prompts

Prompt 1
Show me how to install Laravel Debugbar in my Laravel project and enable it for local development only.
Prompt 2
How do I use Laravel Debugbar to find which database queries are running on a slow page?
Prompt 3
Can I add custom timing measurements to Laravel Debugbar from my PHP code? Show me an example.
Prompt 4
What information does Laravel Debugbar display and how do I read the browser panel?
Open on GitHub → Explain another repo

Generated 2026-05-18 · Model: sonnet-4-6 · Verify against the repo before relying on details.