Skip to content

Commit ee9682d

Browse files
committed
[Feature] Support Laravel 9
1 parent d43ac7a commit ee9682d

File tree

3 files changed

+11
-6
lines changed

3 files changed

+11
-6
lines changed

.github/workflows/tests.yml

Lines changed: 8 additions & 5 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
@@ -25,20 +28,20 @@ jobs:
2528
uses: shivammathur/setup-php@v2
2629
with:
2730
php-version: ${{ matrix.php }}
28-
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, gd
31+
extensions: dom, curl, libxml, mbstring, zip
2932
tools: composer:v2
3033
coverage: none
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/contracts:^${{ 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

1213
### Changed

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@
2525
"require": {
2626
"php": "^7.4|^8.0",
2727
"ext-json": "*",
28-
"illuminate/support": "^8.0",
28+
"illuminate/contracts": "^8.0|^9.0",
29+
"illuminate/support": "^8.0|^9.0",
2930
"laravel-json-api/core": "^2.0",
3031
"laravel-json-api/neomerx-json-api": "^5.0"
3132
},

0 commit comments

Comments
 (0)