Description
Laravel Truss is a package that shows your Laravel database structure as a live, scrollable and zoomable entity relationship diagram, rendered inside your app. It reads the schema from the live database connection and draws it with Mermaid, with each table as a box listing its columns, native types, and primary and foreign key badges. Clicking a table focuses on it and its foreign key neighbours, which keeps large schemas readable. You can drag to pan, scroll or pinch to zoom, and use the Fit button to frame the whole diagram. Truss reads structure only, never row data: tables, columns, keys and indexes. The site says it is designed to run in production behind two independent gates. The snapshot is cached and refreshed after migrations run, and a manual rebuild command is available. Mermaid and fonts are bundled, so it works offline and under a strict content security policy. It supports multiple connections and has a Filament panel plugin. It requires Laravel 12 or later and is released under the MIT license.…
Highlights
- Live ER diagram of your real schema
- Focus mode for large schemas
- Pan, zoom and a Fit button
- Structure only, never row data
- Cached snapshot, rebuilt after migrations
Ratings & Reviews
No ratings yet
Be the first to rate Laravel Truss.
People also visit
Laravel Truss FAQ
What is Laravel Truss?
A database structure viewer for Laravel that shows your schema as a zoomable ER diagram inside your app.
Does it read my data?
No. It reads only the table structure: tables, columns, indexes and foreign keys. Row contents are never queried or exposed.
Is it safe in production?
The site says it is designed for production, gated by two independent layers. On a non-local server it must be installed as a regular dependency, not a dev one, or the route returns 404 on composer install --no-dev deploys.
What does it need?
Laravel 12 or later. Install it with composer require albertoarena/laravel-truss.
Is it free?
Yes. It is free and open source under the MIT license. The site also invites support through Ko-fi or a GitHub star.
What are the best Laravel Truss alternatives?
Popular alternatives to Laravel Truss include Liam ERD, StackRender and ChartDB. See all Laravel Truss alternatives





