https://github.com/rappasoft/laravel-patches
Run patches migration style in your Laravel applications.
https://github.com/rappasoft/laravel-patches
Last synced: 29 days ago
JSON representation
Run patches migration style in your Laravel applications.
- Host: GitHub
- URL: https://github.com/rappasoft/laravel-patches
- Owner: rappasoft
- License: mit
- Created: 2021-03-07T03:50:22.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-07-06T05:18:16.000Z (11 months ago)
- Last Synced: 2025-05-09T00:02:01.527Z (29 days ago)
- Language: PHP
- Size: 68.4 KB
- Stars: 50
- Watchers: 2
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: .github/CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE.md
- Security: .github/SECURITY.md
- Support: docs/support-me.md
Awesome Lists containing this project
README

[](https://packagist.org/packages/rappasoft/laravel-patches)
[](https://github.com/rappasoft/laravel-patches/actions/workflows/php-cs-fixer.yml)
[](https://github.com/rappasoft/laravel-patches/actions/workflows/run-tests.yml)
[](https://packagist.org/packages/rappasoft/laravel-patches)### Enjoying this package? [Buy me a beer 🍺](https://www.buymeacoffee.com/rappasoft)
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:
```bash
composer require rappasoft/laravel-patches
```## Documentation and Usage Instructions
See the [documentation](https://rappasoft.com/docs/laravel-patches) for detailed installation and usage instructions.
## Testing
```bash
composer test
```## Changelog
Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.
## Contributing
Please see [CONTRIBUTING](.github/CONTRIBUTING.md) for details.
## Security Vulnerabilities
Please review [our security policy](../../security/policy) on how to report security vulnerabilities.
## Credits
- [Anthony Rappa](https://github.com/rappasoft)
- [All Contributors](../../contributors)## License
The MIT License (MIT). Please see [License File](LICENSE.md) for more information.