Skip to content

Commit 0dcebba

Browse files
committed
[Feature] Support Laravel 9
1 parent c58486e commit 0dcebba

File tree

3 files changed

+12
-8
lines changed

3 files changed

+12
-8
lines changed

.github/workflows/tests.yml

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

2023
steps:
2124
- name: Checkout Code
@@ -31,14 +34,14 @@ jobs:
3134
ini-values: error_reporting=E_ALL
3235

3336
- name: Set Laravel Version
34-
run: composer require "laravel/framework:${{ matrix.laravel }}" --no-update -n
37+
run: composer require "illuminate/database:^${{ matrix.laravel }}" --no-update
3538

3639
- name: Install dependencies
3740
uses: nick-invision/retry@v1
3841
with:
3942
timeout_minutes: 5
4043
max_attempts: 5
41-
command: composer install --no-suggest --prefer-dist -n -o
44+
command: composer update --prefer-dist --no-interaction --no-progress
4245

4346
- name: Execute tests
4447
run: vendor/bin/phpunit

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ All notable changes to this project will be documented in this file. This projec
77

88
### Added
99

10+
- Package now supports Laravel 9.
1011
- Package now supports PHP 8.1.
1112
- Upgraded to v2 of the `laravel-json-api/eloquent` dependency.
1213

composer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@
2525
"require": {
2626
"php": "^7.4|^8.0",
2727
"ext-json": "*",
28-
"illuminate/database": "^8.0",
29-
"illuminate/pagination": "^8.0",
30-
"illuminate/support": "^8.0",
28+
"illuminate/database": "^8.0|^9.0",
29+
"illuminate/pagination": "^8.0|^9.0",
30+
"illuminate/support": "^8.0|^9.0",
3131
"laravel-json-api/eloquent": "^2.0"
3232
},
3333
"require-dev": {
34-
"orchestra/testbench": "^6.23",
34+
"orchestra/testbench": "^6.23|^7.0",
3535
"phpunit/phpunit": "^9.5.10"
3636
},
3737
"autoload": {

0 commit comments

Comments
 (0)