Skip to content

Laravel Truss

See your database structure as a live, scrollable, zoomable ER diagram, right inside your app. Structure only, never row data.

Why Laravel Truss?

You are staring at an unfamiliar Laravel codebase (or your own, six months later) and you want to see how the tables actually connect. Truss reads your live schema and renders it as an ER diagram inside your app, so you do not have to open a DB client or reverse-engineer migrations by hand.

It reads structure only: tables, columns, keys, and indexes. Row contents are never queried or exposed. That is a hard guarantee, not a config default.

Live ER diagram

Your real schema, introspected from the live connection and rendered with Mermaid. No static migration parsing, no Doctrine DBAL.

Focus mode

Click a table to see just it and its foreign-key neighbours, centred and highlighted, so large schemas stay legible.

Pan and zoom

Drag to pan, scroll or pinch to zoom, like a map. The diagram auto-fits to a readable zoom, and a Fit button frames the whole thing.

Structure only

Only the CREATE TABLE shape. No row data is ever read. Safe to gate and run in production.

Self-contained

Mermaid and fonts are vendored and served from the package. No CDN, so it works offline and under a strict Content-Security-Policy.

Cached and auto-rebuilt

The snapshot is cached and refreshed automatically after migrations run. A manual rebuild command is available too.


Next steps