Skip to content

Commit 17f4ef4

Browse files
committed
[Feature] Upgrade to Laravel 10 and set minimum PHP to 8.1
1 parent 0e1b9b2 commit 17f4ef4

File tree

3 files changed

+20
-17
lines changed

3 files changed

+20
-17
lines changed

.github/workflows/tests.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,8 @@ jobs:
1414
strategy:
1515
fail-fast: true
1616
matrix:
17-
php: [7.4, '8.0', 8.1, 8.2]
18-
laravel: [8.76, 9]
19-
exclude:
20-
- php: 7.4
21-
laravel: 9
17+
php: [8.1, 8.2]
18+
laravel: [10]
2219

2320
steps:
2421
- name: Checkout Code

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file. This projec
55

66
## Unreleased 3.x
77

8+
### Changed
9+
10+
- Upgraded to Laravel 10 and set minimum PHP version to `8.1`.
11+
- **BREAKING** If using the `laravel-json-api/cursor-pagination` package, you now need to passed the schema's `id` field
12+
to the paginator's `make()` method. I.e. use `CursorPagination::make($this->id())`
13+
814
### Fixed
915

1016
- **BREAKING** [#190](https://github.com/laravel-json-api/laravel/issues/190) The JSON:API media type now needs to be

composer.json

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -23,20 +23,20 @@
2323
}
2424
],
2525
"require": {
26-
"php": "^7.4|^8.0",
26+
"php": "^8.1",
2727
"ext-json": "*",
28-
"laravel-json-api/core": "^2.4",
29-
"laravel-json-api/eloquent": "^2.2.1",
30-
"laravel-json-api/encoder-neomerx": "^2.0.1",
31-
"laravel-json-api/exceptions": "^1.1.1",
32-
"laravel-json-api/spec": "^1.2",
33-
"laravel-json-api/validation": "^2.1.1",
34-
"laravel/framework": "^8.76|^9.0"
28+
"laravel-json-api/core": "^3.0",
29+
"laravel-json-api/eloquent": "^3.0",
30+
"laravel-json-api/encoder-neomerx": "^3.0",
31+
"laravel-json-api/exceptions": "^2.0",
32+
"laravel-json-api/spec": "^2.0",
33+
"laravel-json-api/validation": "^3.0",
34+
"laravel/framework": "^10.0"
3535
},
3636
"require-dev": {
37-
"laravel-json-api/testing": "^1.1.2",
38-
"orchestra/testbench": "^6.23|^7.0",
39-
"phpunit/phpunit": "^9.5.10"
37+
"laravel-json-api/testing": "^2.0",
38+
"orchestra/testbench": "^8.0",
39+
"phpunit/phpunit": "^9.5.28"
4040
},
4141
"autoload": {
4242
"psr-4": {
@@ -66,7 +66,7 @@
6666
]
6767
}
6868
},
69-
"minimum-stability": "stable",
69+
"minimum-stability": "dev",
7070
"prefer-stable": true,
7171
"config": {
7272
"sort-packages": true

0 commit comments

Comments
 (0)