ahtesham-clcbws

Detect and fix database schema drift in Laravel by comparing migrations with the live database state.

13
0
100% credibility
Found May 01, 2026 at 13 stars -- GitGems finds repos before they trend. Get early access to the next one.
Sign Up Free
AI Analysis
PHP
AI Summary

A Laravel package that scans for differences between the live database structure and migration definitions, reports issues with health scores, generates fix instructions, and provides a visual dashboard.

How It Works

1
🔍 Discover Schema Sentinel

You hear about a smart helper that ensures your app's database always matches your original blueprint, preventing sneaky mismatches.

2
📦 Bring it into your app

You add this guardian to your Laravel project in a quick, simple way so it can start watching over your data structure.

3
⚙️ Customize your watchlist

You choose which parts of your database to focus on and set up alerts for any surprises.

4
🩺 Check database health

You run a quick scan to see how well your real database matches the perfect plan from your code, getting an instant health score and colorful report.

5
Review the scan results
All good!

Your database is perfectly in sync—everything feels safe and reliable.

⚠️
Spotted issues

It lists missing pieces or mismatches clearly, so you know precisely what needs fixing.

6
🔧 Fix with one click

If needed, the tool creates ready-to-use updates to bring your database back into perfect alignment.

🎉 Perfect sync achieved

Your app now has a bulletproof database that always matches your code, with a dashboard to monitor health anytime.

Sign up to see the full architecture

5 more

Sign Up Free

Star Growth

See how this repo grew from 13 to 13 stars Sign Up Free
Repurpose This Repo

Repurpose is a Pro feature

Generate ready-to-use prompts for X threads, LinkedIn posts, blog posts, YouTube scripts, and more -- with full repo context baked in.

Unlock Repurpose
AI-Generated Review

What is laravel-schema-sentinel?

Laravel Schema Sentinel is a PHP package for Laravel apps that detects database schema drift by comparing your migration files against the live database state. It simulates migrations on an in-memory shadow database, spots missing tables, columns, indexes, or foreign keys, and even generates fix migrations with one command. Think of it as a sentinel guarding your DB integrity during deploys or CI runs, preventing silent drifts that break apps.

Why is it gaining traction?

It stands out by automating fixes—run `php artisan schema:drift --fix` to output a ready-to-run migration, or `--sql` for dry runs—while offering strict mode for extras, snapshots for fast checks, and linting for drift-prone patterns like raw SQL. Hooks like Slack/Discord notifications, a pre-migration guard to block drifted runs, and a Livewire dashboard make it CI/CD friendly, integrating seamlessly with GitHub Actions for automated detect-and-fix workflows. No more manual comparing database states.

Who should use this?

Laravel backend developers managing large migration histories or multi-env setups, where drift from failed deploys or manual DB tweaks causes outages. Teams in GitHub CI pipelines needing reliable schema checks before merges, or ops folks auditing prod DBs against code. Ideal for apps with complex schemas involving foreign keys and custom types.

Verdict

With 13 stars and a 1.0% credibility score, it's early-stage and lightly tested—docs are solid but expect some SQLite quirks on non-standard migrations. Worth trying for Laravel teams prioritizing schema hygiene, but pair with your own tests until it matures.

(198 words)

Sign up to read the full AI review Sign Up Free

Similar repos coming soon.