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.
Table of contents
# Detecting Drift# Generating a Fix# Cross-Environment Comparison# Programmatic API4 Comments
Sort: