<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/laravel-truss-live-interactive-database-er-diagrams-zaty6ynvn" -->

---
title: Laravel Truss: Live Interactive Database ER Diagrams
description: Laravel Truss is a Laravel package that renders your database schema as a live, zoomable ER diagram accessible at /truss in the browser. It reads only...
canonical: https://daily.dev/posts/laravel-truss-live-interactive-database-er-diagrams-zaty6ynvn
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Laravel Truss: Live Interactive Database ER Diagrams | daily.dev
og:description: Laravel Truss is a Laravel package that renders your database schema as a live, zoomable ER diagram accessible at /truss in the browser. It reads only...
og:url: https://daily.dev/posts/laravel-truss-live-interactive-database-er-diagrams-zaty6ynvn
og:image: https://api.daily.dev/og/posts/zaTy6ynvn.png
og:image:alt: Laravel Truss: Live Interactive Database ER Diagrams
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Laravel Truss: Live Interactive Database ER Diagrams

**[Laravel News](https://daily.dev/sources/ln)** · 5 min read · 1 upvotes · 0 comments

## Summary

Laravel Truss is a Laravel package that renders your database schema as a live, zoomable ER diagram accessible at /truss in the browser. It reads only structural data (tables, columns, keys, indexes) and never queries row data. Key features include Focus Mode for isolating a table and its foreign-key neighbors, schema diffing to track changes since the last migration, a Schema Doctor that flags missing primary keys, unindexed foreign keys, and duplicate indexes, multi-connection support, and exports in PNG, SVG, DBML, JSON, CSV, Mermaid, or Markdown. Assets are bundled offline and CSP-safe. It requires PHP 8.3+ and Laravel 12+, and can be installed as a dev dependency via Composer.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://laravel-news.com/laravel-truss-database-er-diagrams>

## Questions this post answers

### How do I generate an ER diagram for my Laravel database schema without an external GUI tool?

Install the Laravel Truss package via composer require albertoarena/laravel-truss and visit the /truss route in your application. It reads only structure (tables, columns, keys, indexes) via introspection, never row data, and renders a zoomable, pannable ER diagram in the browser using bundled Mermaid assets, with no need for external database GUI clients.

_daily.dev surfaces packages like this for developers keeping Laravel schema docs current._

### How can I detect schema drift in a Laravel application from the command line?

Run php artisan truss:diff from the Laravel Truss package, which compares the current database against a cached structural snapshot taken after migrations run. It reports added or dropped tables, column type changes, index adjustments, and foreign key updates without reading any table records, and also displays results in a web dashboard Changes panel.

_track schema drift tooling like this as part of keeping Laravel migrations reliable via daily.dev._

### What PHP and Laravel versions does the Laravel Truss package require?

Laravel Truss requires PHP 8.3 or higher and Laravel 12 or higher. It is installed as a dev dependency by default via composer require albertoarena/laravel-truss --dev, with the /truss dashboard route enabled only in the local environment unless installed as a regular dependency with authorization configured for staging or production.

_developers picking Laravel tooling that fits their PHP version can track releases like this on daily.dev._

## Similar posts on daily.dev

- [There's no artisan schema:show, so I built one](https://daily.dev/posts/there-s-no-artisan-schema-show-so-i-built-one-jxodfs8j7) · FREEK.DEV · 10 upvotes · 4 comments
- [Laravel Brain: Visualize Your Application's Request Lifecycle](https://daily.dev/posts/laravel-brain-visualize-your-application-s-request-lifecycle-7nug7p59g) · Laravel News · 153 upvotes · 12 comments
- [Laravel Schema Sentinel: Detect and Fix Database Schema Drift](https://daily.dev/posts/laravel-schema-sentinel-detect-and-fix-database-schema-drift-hmb4acjqr) · Laravel News · 71 upvotes · 5 comments

---

Tags: [#backend](https://daily.dev/tags/backend), [#php](https://daily.dev/tags/php), [#laravel](https://daily.dev/tags/laravel)

[View this post on daily.dev](https://daily.dev/posts/laravel-truss-live-interactive-database-er-diagrams-zaty6ynvn)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Laravel Truss: Live Interactive Database ER Diagrams","url":"https://daily.dev/posts/laravel-truss-live-interactive-database-er-diagrams-zaty6ynvn","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/laravel-truss-live-interactive-database-er-diagrams-zaty6ynvn"},"datePublished":"2026-08-10T13:45:05.554Z","dateModified":"2026-09-13T19:31:25.014Z","description":"Laravel Truss is a Laravel package that renders your database schema as a live, zoomable ER diagram accessible at /truss in the browser. It reads only...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/21fc9033758ad7ea03c6690a8fb13ce1?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/21fc9033758ad7ea03c6690a8fb13ce1?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Laravel News","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Laravel News","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/ln","url":"https://daily.dev/sources/ln"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/laravel-truss-live-interactive-database-er-diagrams-zaty6ynvn","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"backend,php,laravel","timeRequired":"PT5M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Laravel News","item":"https://daily.dev/sources/ln"},{"@type":"ListItem","position":3,"name":"Laravel Truss: Live Interactive Database ER Diagrams"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/laravel-truss-live-interactive-database-er-diagrams-zaty6ynvn#faq","mainEntity":[{"@type":"Question","name":"How do I generate an ER diagram for my Laravel database schema without an external GUI tool?","acceptedAnswer":{"@type":"Answer","text":"Install the Laravel Truss package via composer require albertoarena/laravel-truss and visit the /truss route in your application. It reads only structure (tables, columns, keys, indexes) via introspection, never row data, and renders a zoomable, pannable ER diagram in the browser using bundled Mermaid assets, with no need for external database GUI clients. daily.dev surfaces packages like this for developers keeping Laravel schema docs current."}},{"@type":"Question","name":"How can I detect schema drift in a Laravel application from the command line?","acceptedAnswer":{"@type":"Answer","text":"Run php artisan truss:diff from the Laravel Truss package, which compares the current database against a cached structural snapshot taken after migrations run. It reports added or dropped tables, column type changes, index adjustments, and foreign key updates without reading any table records, and also displays results in a web dashboard Changes panel. track schema drift tooling like this as part of keeping Laravel migrations reliable via daily.dev."}},{"@type":"Question","name":"What PHP and Laravel versions does the Laravel Truss package require?","acceptedAnswer":{"@type":"Answer","text":"Laravel Truss requires PHP 8.3 or higher and Laravel 12 or higher. It is installed as a dev dependency by default via composer require albertoarena/laravel-truss --dev, with the /truss dashboard route enabled only in the local environment unless installed as a regular dependency with authorization configured for staging or production. developers picking Laravel tooling that fits their PHP version can track releases like this on daily.dev."}}]}
```

