beyondcode/laravel-er-diagram-generator
Generate entity-relationship diagrams directly from your Laravel models. This package inspects your Eloquent relationships and produces a visual ER diagram with Graphviz, making database structure easy to understand and share with your team.
users record are leading indicators of where delivery will slow down over the next several quarters — concrete evidence for carving a "clean up the data model" workstream out of the perpetually deferred backlog.ignore_columns and column types pulled from Laravel's own getColumns(), the diagram shows the tables and relationships a change touches. That supports go/no-go calls on shared-table refactors and shared-schema integrations, and lets you push back on estimates that assume a change is local when it isn't.App\Models\CustAcct) — the difference between an artifact engineers tolerate and one you can put in front of product, design, or leadership in a planning review.ignore_columns to suppress audit/soft-delete and PII-adjacent fields, or aliases for stakeholder-legible diagrams. Treat it as a genuine major bump: audit composer.json constraints and diff generated output on a branch before rolling out.To executives: This is a free, open-source developer tool that automatically generates a picture of our application's data model directly from the codebase. It costs nothing to license, takes well under a day of engineering to adopt, and pays back three ways: faster onboarding for new engineers, lower risk on schema changes because we can see exactly what a change touches before we make it, and a shared diagram we can use in planning conversations instead of stale documentation nobody trusts. The current release keeps us aligned with Laravel 13 and adds controls that make the output readable for non-engineers. To be clear about scope: this is not a data-governance or enterprise catalog platform — if we later need lineage across multiple systems, that's a separate buy decision with its own business case. Right now this closes a documentation gap at essentially zero cost.
To engineering: It's a dev-only artisan command (php artisan erd:generate) that introspects Eloquent models and relationships, emits Graphviz DOT, and renders PNG/SVG. Nothing touches the request path — no runtime footprint, no production dependency, no blast radius. 6.0.0 brings model aliasing for cleaner diagrams, column-type accuracy via Laravel's getColumns(), an ignore_columns option that finally makes output reviewable (drop created_at/updated_at/deleted_at and PII-adjacent fields), and Laravel 13 compatibility. It does require Graphviz installed locally and in CI, so pin that version in the CI image — that's the most likely source of "it doesn't work on my machine" tickets. Because it's a major bump, the acceptance gate is: check composer.json constraints, run both 5.x and 6.0.0 against the same database, and diff the .dot output — classify any diffs as cosmetic, expected, or suspicious before merging. Adoption order: publish and tune the config, commit or CI-generate the artifact so it doesn't rot, then write a short internal README covering the Graphviz prerequisite and the baseline ignore_columns list. One caveat worth repeating: diagrams reflect models, not the database — they're a navigation aid, never the source of truth.
How can I help you explore Laravel packages today?