Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ jobs:
fail-fast: true
matrix:
os: [ubuntu-latest, windows-latest]
php: [8.1]
laravel: [10.*]
php: [8.4]
laravel: [12.*]
stability: [prefer-lowest, prefer-stable]
include:
- laravel: 10.*
testbench: 8.0
- laravel: 12.*
testbench: 10.*

name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }}

Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
[![Tests](https://github.com/rappasoft/laravel-patches/actions/workflows/run-tests.yml/badge.svg)](https://github.com/rappasoft/laravel-patches/actions/workflows/run-tests.yml)
[![Total Downloads](https://img.shields.io/packagist/dt/rappasoft/laravel-patches.svg?style=flat-square)](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.
Expand Down
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@
"require": {
"php": "^8.0",
"spatie/laravel-package-tools": "^1.1",
"illuminate/contracts": "^10.0"
"illuminate/contracts": "^12.0"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^3.1",
"orchestra/testbench": "^8.0",
"phpunit/phpunit": "^10.1",
"orchestra/testbench": "^10.0",
"phpunit/phpunit": "^11.0",
"spatie/laravel-ray": "^1.9"
},
"autoload": {
Expand Down
1 change: 0 additions & 1 deletion src/Models/Patch.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
*/
class Patch extends Model
{

/**
* @var bool
*/
Expand Down
1 change: 0 additions & 1 deletion src/Patch.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
*/
abstract class Patch
{

/**
* @var array
*/
Expand Down
1 change: 0 additions & 1 deletion src/Patcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
*/
class Patcher
{

/**
* The filesystem instance.
*
Expand Down