dragon-code/laravel-data-dumper
A Laravel package that makes debugging data easier with convenient dumping helpers for inspecting variables and application state. Get clearer, more readable output while developing so you can trace values and diagnose issues faster, with a lightweight integration that fits naturally into Laravel wo...
schema:dump + --prune workflow, this package answers the immediate follow-up question ("what about the data those old migrations inserted?"). It removes the main blocker engineering raises when proposing a migration squash.require-dev" vs. "vendor ~200 lines." Low-stakes either way, which is itself the useful finding.php artisan migrate on a fresh database to yield a working application without a separate db:seed step — affecting pipeline design, local onboarding time, and ephemeral test-DB provisioning.Adopt when:
schema:dump (or is about to), and the squashed-schema workflow is already or soon-to-be in place — the package is meaningless without it.schema/*.sql diff in code review.Look elsewhere / deprioritize when:
.sql schema file will bloat and churn.To executives: A small, free (MIT) developer-tooling package that shortens the path from "empty database" to "working application" — fewer setup steps for new engineers and CI, and fewer incidents where a fresh or staging environment is missing reference data that production has. It is dev/CI-only, has no runtime or production footprint, and can be removed in an afternoon. Cost is near zero; the payoff is reduced environment drift and faster onboarding. Frame it as a tactical enabler of an already-planned migration-squash cleanup, not a standalone initiative.
To engineering: It extends php artisan schema:dump so that INSERT statements for a configured allowlist of tables are written into the squashed schema file alongside the DDL. Result: migrate on a clean database reproduces both structure and essential reference data, with no seeder step. Install as require-dev, keep the table list short and curated, and treat the generated schema file as reviewed source. The 1.6.0 release adds Laravel 13 support, so forward compatibility is covered for teams upgrading. Caveats to accept explicitly: single-maintainer project with negligible adoption, so pin the version and be prepared to vendor it; and it only makes sense once we're committed to schema dumping. Do not use it for large, volatile, or environment-specific datasets.
Recommendation: Pilot on one service with a short allowlist (roles/permissions, countries), install as a dev dependency, and time fresh-environment setup before and after. If it holds up, standardize it in the template repo; if maintainer activity stalls, vendor the command. The 1.6.0 bump confirms the package follows Laravel releases, which modestly raises confidence in the pilot — but given the low opportunity score, keep treating this as an internal hygiene win rather than something to build a platform strategy around.
How can I help you explore Laravel packages today?