etsetra/laravel-migration-shield
最新稳定版本:1.0
Composer 安装命令:
composer require 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.
README 文档
README
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
- Prevents the execution of commands like
migrate:fresh,migrate:refresh,migrate:rollback,migrate:reset,migrate:status,db:seed, anddb:wipein production environments. - Simple and easy installation.
- Compatible with Laravel 12.
Installation
Install the package via Composer:
composer require etsetra/laravel-migration-shield
Laravel will automatically register the service provider.
Usage
Once installed, Laravel Migration Shield works silently
Testing
To run the tests, use the following command:
./vendor/bin/phpunit --filter MigrationShieldTest
Contributing
If you wish to contribute, please submit a pull request.
License
MIT
统计信息
- 总下载量: 1
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 6
- 点击次数: 3
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-03-30