aaix/laravel-patches
Laravel Patches adds a simple, command-based patching system for Laravel. Create one-off Artisan commands for data fixes and deployments, run them manually, and track executions in the database to prevent reruns. Delete patches when done.
Patch facade to wrap existing ad-hoc scripts.YYYYMMDD-description).php artisan vendor:publish --tag="laravel-patches-config").config/app.php.database/patches), reducing technical debt from scattered scripts.Schema::hasTable checks).config/laravel-patches.php).| Failure Type | Impact | Mitigation |
|---|---|---|
| Patch Logic Error | Data corruption or app crashes | Unit test patches before deployment. |
| Database Constraints | Patch fails mid-execution | Wrap in transactions; use DB::transaction(). |
| Permission Issues | Unauthorized patch execution | Use Laravel Gates/Policies to restrict access. |
| Dependency Conflicts | Patch relies on deprecated code | Document dependencies; deprecate old code. |
| No Rollback Mechanism | Permanent data changes | Design patches to be idempotent or reversible. |
How can I help you explore Laravel packages today?