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 today

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 35% of packages

Maintenance42

Moderate activity, may be stable

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity38

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

460d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/40306558?v=4)[alper](/maintainers/wutlu)[@wutlu](https://github.com/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

[api-platform/laravel

API Platform support for Laravel

58171.6k14](/packages/api-platform-laravel)[tomshaw/electricgrid

A feature-rich Livewire package designed for projects that require dynamic, interactive data tables.

119.4k](/packages/tomshaw-electricgrid)

PHPackages © 2026

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