myqaa / laravel-patches
Run patches migration style in your Laravel applications.
Fund package maintenance!
rappasoft
Requires
- php: ^8.0
- illuminate/contracts: ^10.0 || ^11.0
- spatie/laravel-package-tools: ^1.1
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.1
- orchestra/testbench: ^8.0
- phpunit/phpunit: ^10.1
- spatie/laravel-ray: ^1.9
This package is auto-updated.
Last update: 2024-11-27 13:48:00 UTC
README
Enjoying this package? Buy me a beer 🍺
This package generates patch files in the same fashion Laravel generates migrations. Each file is timestamped with an up and a down method and is associated with a batch. You may run or rollback patches with the commands below.
This is a very simple package. It runs whatever is in your up and down methods on each patch in the order the patches are defined. It currently does not handle any errors or database transactions, please make sure you account for everything and have a backup plan when running patches in production.
Installation
You can install the package via composer:
composer require rappasoft/laravel-patches
Documentation and Usage Instructions
See the documentation for detailed installation and usage instructions.
Testing
composer test
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
License
The MIT License (MIT). Please see License File for more information.