New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

rappasoft/laravel-patches

Run patches migration style in your Laravel applications.
78,514 52
Install
composer require rappasoft/laravel-patches
Latest Version:v4.1.0
PHP:^8.2
Laravel:11 · 12 · 13
Older releases:8 · 9 · 10
License:MIT
Last Updated:Oct 9, 2026
Links: GitHub  ·  Packagist
Maintainer: rappa819

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.

Related Packages

myqaa/laravel-patches

Run patches migration style in your Laravel applications.

12,384 0
rappasoft/laravel-authentication-log

Log user authentication details and send new device notifications.

2,535,622 1,000
publiux/laravel-authentication-log

Log user authentication details and send new device notifications.

2,063 0
rappasoft/lockout

Put your Laravel application into read-only mode.

307,077 96
magentron/laravel-lockout

Put your Laravel application into read-only mode. (forked from rappasoft/lockout...

5,310 0

Version History

Version Released PHP Laravel License
v4.1.0 ^8.2 ^11.0|^12.0|^13.0 MIT
v4.0.0 ^8.2 ^11.0|^12.0 MIT
v3.0.0 ^8.0 ^10.0 MIT
v2.0.1 ^8.0 ^9.0 MIT
v2.0.0 ^8.0 ^9.0 MIT