<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/truss-schema-doctor-for-laravel-database-9qaowbm12" -->

---
title: Truss: Schema doctor for Laravel Database | daily.dev
description: Truss's schema doctor is a deterministic, structure-only linter for database schemas, available both as a php artisan truss:doctor CLI command and as a Health...
canonical: https://daily.dev/posts/truss-schema-doctor-for-laravel-database-9qaowbm12
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Truss: Schema doctor for Laravel Database | daily.dev
og:description: Truss's schema doctor is a deterministic, structure-only linter for database schemas, available both as a php artisan truss:doctor CLI command and as a Health...
og:url: https://daily.dev/posts/truss-schema-doctor-for-laravel-database-9qaowbm12
og:image: https://api.daily.dev/og/posts/9QaoWbm12.png
og:image:alt: Truss: Schema doctor for Laravel Database
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.

# Truss: Schema doctor for Laravel Database

**[PHP Dev](https://daily.dev/sources/phpdev)** · [@damienseguy](https://daily.dev/damienseguy) · 3 upvotes · 0 comments

## Summary

Truss's schema doctor is a deterministic, structure-only linter for database schemas, available both as a php artisan truss:doctor CLI command and as a Health panel in the dashboard, both running the same rule engine over the same snapshot. It ships fourteen rules across integrity, indexing, and type checks, each tagged high-confidence or heuristic and independently severity-rated; the recommended preset runs only high-confidence rules while strict enables heuristics too. Rules can be engine-aware (a missing foreign-key index is an error on PostgreSQL/SQLite but only info on MySQL/MariaDB, since the latter auto-index foreign keys). The piece details how tricky rules like TRUSS-INT-007 (pivot detection) and TRUSS-INT-010 (foreign key name-mismatch) avoid false positives, and covers version-to-version changes: v1.11 added TRUSS-INT-010, and v1.10 narrowed TRUSS-INT-007, cutting false positives from 69 to 14 firings across twelve tested Laravel applications, meaning CI outcomes can change on unmodified schemas after an upgrade.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://trussphp.com/guides/schema-doctor>

## 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 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
- [Monitor schema health with engine.schema\_fields: Structure, Drift, and Volatility](https://daily.dev/posts/monitor-schema-health-with-engine-schema-fields-structure-drift-and-volatility-u58ya14n6) · Coralogix · 0 upvotes · 0 comments
- [dltHub AI Workbench data quality toolkit: schema-aware checks that route their own fixes](https://daily.dev/posts/dlthub-ai-workbench-data-quality-toolkit-schema-aware-checks-that-route-their-own-fixes-hx674ay6u) · dltHub · 1 upvotes · 0 comments

---

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

[View this post on daily.dev](https://daily.dev/posts/truss-schema-doctor-for-laravel-database-9qaowbm12)

```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":"DiscussionForumPosting","mainEntityOfPage":"https://daily.dev/posts/truss-schema-doctor-for-laravel-database-9qaowbm12","headline":"Truss: Schema doctor for Laravel Database","text":"Shared: Schema doctor","url":"https://daily.dev/posts/truss-schema-doctor-for-laravel-database-9qaowbm12","datePublished":"2026-09-14T12:03:24.628Z","dateModified":"2026-09-14T12:04:36.584Z","author":{"@type":"Person","name":"Damien seguy","url":"https://daily.dev/damienseguy","image":"https://media.daily.dev/image/upload/s--nPbjKqol--/f_auto,q_auto/v1698422671/avatars/avatar_G85JhYcDxAg024Omc8Rlp","description":"PHP developer passionate about deep language knowledge, testing, static analysis, and sustainable it","worksFor":{"@type":"Organization","name":"Exakat","logo":"https://media.daily.dev/image/upload/s--ibtl6fze--/f_auto/v1749051132/companies/exakat"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"EndorseAction"},"userInteractionCount":43740}},"image":"https://media.daily.dev/image/upload/s--P4t4XyoV--/f_auto/v1722860399/public/Placeholder%2001","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":3},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"sharedContent":{"@type":"WebPage","url":"https://api.daily.dev/r/6VPTjSwak"},"isPartOf":{"@type":"WebPage","url":"https://daily.dev/squads/phpdev","name":"PHP Dev"}}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"PHP Dev","item":"https://daily.dev/squads/phpdev"},{"@type":"ListItem","position":3,"name":"Truss: Schema doctor for Laravel Database"}]}
```

