From 37e18311f984e0419397cf1da507fe1f29e2f5e3 Mon Sep 17 00:00:00 2001 From: Christopher Gammie Date: Thu, 14 Mar 2024 18:03:20 +0000 Subject: [PATCH] feat!: upgrade to Laravel 11 and drop PHP 8.1 (#267) --- .github/workflows/tests.yml | 4 ++-- .gitignore | 3 +-- CHANGELOG.md | 5 +++++ composer.json | 24 ++++++++++++------------ 4 files changed, 20 insertions(+), 16 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 3d8abe3..843531a 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -14,8 +14,8 @@ jobs: strategy: fail-fast: true matrix: - php: [8.1, 8.2, 8.3] - laravel: [10] + php: [8.2, 8.3] + laravel: [11] steps: - name: Checkout Code diff --git a/.gitignore b/.gitignore index 62b9c43..9448440 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,4 @@ /dummy vendor/ composer.lock -.phpunit.result.cache -.phpunit.cache +.phpunit.cache/ diff --git a/CHANGELOG.md b/CHANGELOG.md index 76bd4a8..753de24 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,11 @@ All notable changes to this project will be documented in this file. This projec ## Unreleased +### Changed + +- **BREAKING** Package now requires Laravel 11. +- Minimum PHP version is now `8.2`. + ## [3.4.0] - 2024-03-03 ### Added diff --git a/composer.json b/composer.json index 4be1273..5a308e0 100644 --- a/composer.json +++ b/composer.json @@ -23,20 +23,20 @@ } ], "require": { - "php": "^8.1", + "php": "^8.2", "ext-json": "*", - "laravel-json-api/core": "^3.3", - "laravel-json-api/eloquent": "^3.1", - "laravel-json-api/encoder-neomerx": "^3.1", - "laravel-json-api/exceptions": "^2.1", - "laravel-json-api/spec": "^2.0", - "laravel-json-api/validation": "^3.0", - "laravel/framework": "^10.0" + "laravel-json-api/core": "^4.0", + "laravel-json-api/eloquent": "^4.0", + "laravel-json-api/encoder-neomerx": "^4.0", + "laravel-json-api/exceptions": "^3.0", + "laravel-json-api/spec": "^3.0", + "laravel-json-api/validation": "^4.0", + "laravel/framework": "^11.0" }, "require-dev": { - "laravel-json-api/testing": "^2.1", - "orchestra/testbench": "^8.0", - "phpunit/phpunit": "^10.0" + "laravel-json-api/testing": "^3.0", + "orchestra/testbench": "^9.0", + "phpunit/phpunit": "^10.5" }, "autoload": { "psr-4": { @@ -53,7 +53,7 @@ }, "extra": { "branch-alias": { - "dev-develop": "3.x-dev" + "dev-develop": "4.x-dev" }, "laravel": { "aliases": {