recca0120/eloquent-dumper
Eloquent Dumper adds dump() and dd() helpers to Laravel's Eloquent query builder so you can instantly inspect the generated SQL with its bindings while debugging. No query log setup needed—just chain it onto any query. Works with Eloquent models and the query builder.
dd($query->toSql()) calls and one-off helper functions with a single dev dependency — a small, reversible bet on team velocity rather than a platform commitment.where clauses by exposing generated SQL with bound parameters. The measurable outcome is time-to-diagnose on bug tickets and PR review cycles, not product metrics.Consider it when:
require-dev-only dependency: no migrations, no service, no production footprint, no credentials.composer.json.Look elsewhere when:
dump SQL with bindings) is already 80% covered by ->toSql() + ->getBindings() or a dd(). Then the value is formatting convenience only, and the honest answer may be "don't add the dependency."composer update — check resolution in a throwaway branch before committing, and pin the version.For executives: This is a development-only utility — no production surface, no customer data, no schema changes, MIT licensed. Cost is a single dev dependency plus a short review; removing it takes minutes. The upside is faster diagnosis of slow or incorrect queries, which shows up as less engineering time per bug, not as a new feature. The honest cap: it's a single-maintainer package with modest adoption and no recent release, so we treat it as a convenience, not a platform commitment, and we keep it out of production and CI.
For engineering: Add it under require-dev only. Verify composer resolution against our lockfile on a scratch branch first (framework-version coupling is the realistic failure mode, even for a dev tool), pin the version, and use it for ad-hoc inspection during development and code review. Do not wrap it in internal tooling or depend on its output format. If we standardize on Telescope or Debugbar, this is redundant — decide which one we're keeping and write it down so the next service doesn't install a third.
How can I help you explore Laravel packages today?