Search by

rappasoft / laravel-patches

rappa819

Run patches migration style in your Laravel applications.

Package info

github.com/rappasoft/laravel-patches

pkg:composer/rappasoft/laravel-patches

Fund package maintenance!

rappasoft

Statistics

Installs: 78 118

Dependents: 0

Suggesters: 0

Stars: 52

Open Issues: 0

v4.1.0 2026-10-09 19:15 UTC

This package is auto-updated.

Last update: 2026-10-09 19:15:36 UTC


README

Package Logo

Latest Version on Packagist Styling Tests Total Downloads

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.

The package runs each patch's up and down methods in order, tracks execution metadata, and dispatches lifecycle events. Errors are logged, and database transactions can be enabled globally or per patch. Test patches and keep a backup plan when running them in production.

Requirements

  • PHP 8.2+
  • Laravel 11.x - 13.x (Laravel 13 requires PHP 8.3+)

Use patched Laravel 12.69+ or 13.30+ for production. Laravel 11 remains compatible, but its security support ended on March 12, 2026 and it has unresolved framework advisories.

Installation

You can install the package via composer:

composer require rappasoft/laravel-patches

Publish and run the migrations:

php artisan vendor:publish --provider="Rappasoft\LaravelPatches\LaravelPatchesServiceProvider" --tag="laravel-patches-migrations"
php artisan migrate

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.