PHPackages                             etsetra/laravel-migration-shield - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Security](/categories/security)
4. /
5. etsetra/laravel-migration-shield

ActiveLibrary[Security](/categories/security)

etsetra/laravel-migration-shield
================================

Protects production environments by preventing the execution of dangerous migration and seeding commands like migrate:fresh, migrate:refresh, migrate:rollback, db:seed, and db:wipe.

1.0(1y ago)61MITPHP

Since Mar 30Pushed 1y ago1 watchersCompare

[ Source](https://github.com/etsetra/Laravel-Migration-Shield)[ Packagist](https://packagist.org/packages/etsetra/laravel-migration-shield)[ RSS](/packages/etsetra-laravel-migration-shield/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (3)Versions (2)Used By (0)

Laravel Migration Shield
========================

[](#laravel-migration-shield)

Laravel Migration Shield is a Laravel package that protects data integrity in production environments by preventing the execution of dangerous migration and seeding commands.

Features
--------

[](#features)

- Prevents the execution of commands like `migrate:fresh`, `migrate:refresh`, `migrate:rollback`, `migrate:reset`, `migrate:status`, `db:seed`, and `db:wipe` in production environments.
- Simple and easy installation.
- Compatible with Laravel 12.

Installation
------------

[](#installation)

Install the package via Composer:

```
composer require etsetra/laravel-migration-shield
```

Laravel will automatically register the service provider.

Usage
-----

[](#usage)

Once installed, Laravel Migration Shield works silently

Testing
-------

[](#testing)

To run the tests, use the following command:

```
./vendor/bin/phpunit --filter MigrationShieldTest
```

Contributing
------------

[](#contributing)

If you wish to contribute, please submit a pull request.

License
-------

[](#license)

MIT

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance46

Moderate activity, may be stable

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity37

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

407d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/c7d328d973136a13058ec575e02f7a3a4f7e5ad7b040c6509051dd25aac23b33?d=identicon)[wutlu](/maintainers/wutlu)

---

Top Contributors

[![wutlu](https://avatars.githubusercontent.com/u/40306558?v=4)](https://github.com/wutlu "wutlu (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/etsetra-laravel-migration-shield/health.svg)

```
[![Health](https://phpackages.com/badges/etsetra-laravel-migration-shield/health.svg)](https://phpackages.com/packages/etsetra-laravel-migration-shield)
```

###  Alternatives

[tzsk/otp

A secure, database-free One-Time Password (OTP) generator and verifier for PHP and Laravel.

241641.4k1](/packages/tzsk-otp)[genealabs/laravel-governor

Managing policy and control in Laravel.

201262.8k](/packages/genealabs-laravel-governor)[masterro/laravel-xss-filter

Filter user input for XSS but don't touch other html

41254.5k](/packages/masterro-laravel-xss-filter)[dgtlss/warden

A Laravel package that proactively monitors your dependencies for security vulnerabilities by running automated composer audits and sending notifications via webhooks and email

8745.6k](/packages/dgtlss-warden)[dgtlss/owaspadvisor

A Laravel package to help developers implement OWASP Top 10 security guidelines

327.1k](/packages/dgtlss-owaspadvisor)[laragear/poke

Keep your forms alive, avoid TokenMismatchException by gently poking your Laravel app

2211.5k](/packages/laragear-poke)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
