explaingit

fruitcake/laravel-debugbar

Analysis updated 2026-06-21

19,210PHPAudience · developerComplexity · 2/5Setup · easy

TLDR

A developer toolbar for Laravel apps that shows database queries, routes, views, logs, and performance timings in a panel at the bottom of your browser, for local debugging only, never on production.

Mindmap

mindmap
  root((laravel-debugbar))
    What it does
      Browser debug toolbar
      Request diagnostics
    Tech stack
      PHP
      Laravel
      Composer
    Info shown
      Database queries
      Routes and views
      Log messages
      Cache activity
    Use cases
      Debug slow pages
      Trace N+1 queries
      Custom timing
Click or tap to explore — scroll the page freely

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Debug a slow Laravel page by seeing exactly which database queries ran and how long each took.

USE CASE 2

Trace unexpected behavior by inspecting which routes, views, and events fired during a request.

USE CASE 3

Measure how long specific sections of your PHP code take using custom timing calls.

USE CASE 4

Monitor cache hits and misses and log messages during a Laravel request.

What is it built with?

PHPLaravelComposer

How does it compare?

fruitcake/laravel-debugbarbookstackapp/bookstackeasychen/howto-make-more-money
Stars19,21018,75218,533
LanguagePHPPHPPHP
Setup difficultyeasymoderateeasy
Complexity2/53/51/5
Audiencedevelopergeneralpm founder

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · easy Time to first run · 5min

Never enable on a live site, it exposes all internal request data to anyone who can view the page.

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
My Laravel page loads slowly, show me how to read the Laravel Debugbar query panel to identify N+1 query problems and fix them with eager loading.
Prompt 2
Using Laravel Debugbar's facade, add custom timing measurements around my payment processing code to see how long each step takes.
Prompt 3
How do I add a custom collector to Laravel Debugbar that logs all external API calls my app makes during a request?
Prompt 4
Walk me through installing Laravel Debugbar as a dev-only Composer dependency and confirming it only activates when APP_DEBUG is true.

Frequently asked questions

What is laravel-debugbar?

A developer toolbar for Laravel apps that shows database queries, routes, views, logs, and performance timings in a panel at the bottom of your browser, for local debugging only, never on production.

What language is laravel-debugbar written in?

Mainly PHP. The stack also includes PHP, Laravel, Composer.

How hard is laravel-debugbar to set up?

Setup difficulty is rated easy, with roughly 5min to a first successful run.

Who is laravel-debugbar for?

Mainly developer.

Open on GitHub → Explain another repo

This repo across BitVibe Labs

Scan in gitsafehub Deploy in gitdeployhub fruitcake on gitmyhub

Verify against the repo before relying on details.