laravel-migration-shield maintained by etsetra
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
- 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