malikad778

Catch dangerous Laravel migrations before they reach production. Static analysis, zero config. The strong_migrations equivalent for Laravel.

14
0
100% credibility
Found Feb 24, 2026 at 10 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 statically analyzes migration files to detect and prevent dangerous database schema changes that could cause production outages.

How It Works

1
🛡️ Discover the safety tool

You hear about a helpful guard that catches risky database changes before they break your live app.

2
📦 Add it to your project

You easily include this safety feature into your web app with a quick addition.

3
🔄 Prepare database updates

As you get ready to apply changes to your app's data structure, it quietly watches.

4
⚠️ Spot the dangers

It highlights risky actions like suddenly removing key data spots and suggests safe ways to handle them.

5
Review and adjust

You see clear explanations and choose to tweak your changes for safety or proceed carefully.

6
📊 Scan changes early

Before sharing with your team, run a quick check to catch issues upfront.

🎉 Smooth live updates

Your app's database evolves safely, deployments go perfectly, and everyone sleeps better.

Sign up to see the full architecture

5 more

Sign Up Free

Star Growth

See how this repo grew from 10 to 14 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-migration-guard?

This PHP package for Laravel 10-12 acts as a safety net for database migrations, scanning them to catch dangerous operations like dropping columns, renaming tables, or adding NOT NULL fields without defaults before they hit production. It prevents outages during zero-downtime deploys by warning or blocking risky changes right in `artisan migrate`, using static analysis with zero config setup via Composer dev dependency. Think of it as the Laravel answer to Rails' strong_migrations—analysis that flags most dangerous catch scenarios without needing a DB connection.

Why is it gaining traction?

It stands out by integrating seamlessly into workflows: hooks into migrate commands, offers a standalone `migration:guard:analyse` CLI for CI/CD with JSON output or GitHub annotations for PR comments, and provides safe alternatives per issue. Unlike manual checklists or try-catch github actions hacks, it auto-detects problems in prod/staging envs only, with configurable warn/block modes and per-table ignores. Devs love the sub-second scans and GitHub Actions compatibility for fail-fast pipelines.

Who should use this?

Laravel backend teams managing large MySQL/Postgres tables (500k+ rows) during blue-green or rolling deploys. DBAs and deployment engineers tired of post-mortems on dropColumn surprises or index locks. Agencies handling client prod migrations where one bad change means downtime.

Verdict

Promising for prod safety but early-stage: 10 stars and 1.0% credibility score signal low adoption, though docs are thorough and tests solid. Add it as a dev dep now if deploys keep you up at night—low risk, high upside. (187 words)

Sign up to read the full AI review Sign Up Free

Similar repos coming soon.