diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index b16d547..9dc60fc 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -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 }} diff --git a/README.md b/README.md index 500c7d4..14568cd 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/composer.json b/composer.json index 55ce67e..7624132 100644 --- a/composer.json +++ b/composer.json @@ -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": { diff --git a/src/Models/Patch.php b/src/Models/Patch.php index 577ae1b..1c48c49 100644 --- a/src/Models/Patch.php +++ b/src/Models/Patch.php @@ -11,7 +11,6 @@ */ class Patch extends Model { - /** * @var bool */ diff --git a/src/Patch.php b/src/Patch.php index 56bb47e..ff18bb2 100644 --- a/src/Patch.php +++ b/src/Patch.php @@ -12,7 +12,6 @@ */ abstract class Patch { - /** * @var array */ diff --git a/src/Patcher.php b/src/Patcher.php index 7226ac4..cca3d84 100644 --- a/src/Patcher.php +++ b/src/Patcher.php @@ -15,7 +15,6 @@ */ class Patcher { - /** * The filesystem instance. *