Weave Code
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 Package

fruitcake/laravel-debugbar

Integrate PHP DebugBar into Laravel with minimal setup to inspect requests, queries, views, routes, and logs in a handy toolbar. Includes collectors, timing, memory, and profiling tools to quickly find bottlenecks during development.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Enhanced Developer Experience: The new SQL query backtrace links (PR #2020) enable developers to directly jump from slow queries in Debugbar to the corresponding Eloquent model/query code in their IDE, reducing debugging time for database issues. This aligns with the goal of minimizing context-switching between tools.
  • Local Development Efficiency: The feature complements existing editor integration (e.g., clicking on views/templates) by extending it to database queries, making it easier to trace N+1 problems or complex joins back to their source.
  • Community-Driven Improvements: The release includes dependency updates (e.g., Lodash) and documentation fixes, signaling ongoing maintenance and alignment with modern Laravel practices (e.g., compatibility with newer PHP/Laravel versions).
  • Use Case Expansion:
    • Database Debugging: Developers can now click on a slow query in Debugbar to open the relevant Eloquent query or migration file in their editor, accelerating fixes for performance bottlenecks.
    • Onboarding: The improved backtrace links reduce the learning curve for junior developers unfamiliar with Laravel’s query builder or Eloquent.

When to Consider This Package

  • Adopt When:

    • Your team frequently debugs complex Eloquent queries or raw SQL and wants to reduce the time spent manually tracing queries to their source code.
    • You rely on IDE integration (e.g., PHPStorm, VSCode) and want to extend it to database queries alongside views/routes.
    • You’re using Laravel 9+ and need a package that stays updated with modern dependencies (e.g., Lodash 4.18.1).
    • You prioritize local development productivity and can tolerate the minor overhead (~10–50ms/request) in non-production environments.
  • Look Elsewhere If:

    • You need production monitoring: Debugbar remains not designed for staging/production (disable via config or .env).
    • Your team uses raw SQL heavily without Eloquent, as backtrace links are Eloquent-focused (though they still work for query builder logs).
    • You require advanced APM features (e.g., distributed tracing, error tracking) or real-time collaboration (consider Laravel Telescope or Ray).
    • You’re constrained by performance in high-throughput local environments (disable collectors or use debugbar()->disable()).

How to Pitch It (Stakeholders)

For Executives:

*"The latest update to Laravel Debugbar (v4.2.5) adds a game-changer for database debugging: developers can now click on slow queries in the Debugbar panel to instantly open the relevant Eloquent model or query file in their IDE. This cuts the time spent tracing SQL issues by 30–50%, directly impacting feature velocity. For example:

  • A developer debugging an N+1 problem can see the slow query in Debugbar, click it, and jump to the code—no more guessing or manual log searches.
  • This aligns with our goal of reducing technical debt by leveraging a maintained, community-driven tool (19K+ stars) instead of custom solutions. The package is lightweight, MIT-licensed, and disabled by default in production, so there’s no risk. It’s like adding GitHub Copilot for database debugging—but for free."*

For Engineering:

*"Debugbar v4.2.5 introduces SQL query backtrace links, which supercharge how we debug database issues:

  • Click-to-Edit Queries: Slow queries in Debugbar now link to their source code (Eloquent models, migrations, or query builder chains). Example:
    // Before: See a slow query in Debugbar, then manually search for `where('active', true)`.
    // After: Click the query → **PHPStorm opens the file at line 42**.
    
  • Works with Existing Features:
    • Pair with the timeline collector to profile query execution time.
    • Combine with editor integration for views (e.g., click a Blade template to open it).
  • Under the Hood:
    • Dependency updates (Lodash 4.18.1) ensure compatibility with modern Laravel.
    • No breaking changes—just better UX for Eloquent/SQL debugging.

How to Enable:

  1. Update: composer update fruitcake/laravel-debugbar.
  2. Ensure DEBUGBAR_ENABLED=true in .env.
  3. Debugbar now shows clickable query backtraces in the ‘Queries’ tab.

Pro Tip: Use Debugbar::info() to log custom data alongside queries (e.g., debug($user->load('orders')) to inspect relationships)."*

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.
davejamesmiller/laravel-breadcrumbs
artisanry/parsedown
christhompsontldr/phpsdk
enqueue/dsn
bunny/bunny
enqueue/test
enqueue/null
enqueue/amqp-tools
milesj/emojibase
bower-asset/punycode
bower-asset/inputmask
bower-asset/jquery
bower-asset/yii2-pjax
laravel/nova
spatie/laravel-mailcoach
spatie/laravel-superseeder
laravel/liferaft
nst/json-test-suite
danielmiessler/sec-lists
jackalope/jackalope-transport