---
title: "Laravel Schema Sentinel: Detect and Fix Database Schema Drift"
url: https://daily.dev/posts/laravel-schema-sentinel-detect-and-fix-database-schema-drift-hmb4acjqr
source_url: https://laravel-news.com/laravel-schema-sentinel-detect-and-fix-database-schema-drift
type: article
source: "Laravel News"
published: 2026-05-01T13:08:36.721Z
updated: 2026-08-24T07:03:10.796Z
tags: ["database", "php", "laravel"]
reading_time: 2
upvotes: 71
comments: 5
language: 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 Schema Sentinel: Detect and Fix Database Schema Drift

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

## Summary

Laravel Schema Sentinel is a new package that detects database schema drift by building a shadow database from your migration files and diffing it against your live database. It audits tables, columns, data types, nullability, defaults, indexes, and foreign keys. When drift is found, it can auto-generate corrective migrations with an interactive review mode. It also supports cross-environment comparison (e.g., local vs. staging), a programmatic Facade API, a Livewire visual health dashboard, and a pre-migration guard that blocks `php artisan migrate` if drift is detected. Compatible with Laravel 11.x through 13.x.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://laravel-news.com/laravel-schema-sentinel-detect-and-fix-database-schema-drift>

## Community discussion

Top comments from developers on daily.dev.

**@abdelrahmanmoez** · 2 upvotes

> This is really helpful if it's working righ!

**@o251298** · 2 upvotes

> Nice tool — helps catch schema drift and fix it automatically 👍

**@ahteshamabdulaziz** · 0 upvotes

> Thanks everyone to make my efforts acknowledged, i will really sure to gave you more needed packages soon for now ithe the clcbws/laravel-fabric the package which is the single thing in all of your projects if you know what it is.

---

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

[View this post on daily.dev](https://daily.dev/posts/laravel-schema-sentinel-detect-and-fix-database-schema-drift-hmb4acjqr)
