Skip to content

Commit 5ebe05e

Browse files
committed
[Feature] Add support for Laravel 9
1 parent 1506a53 commit 5ebe05e

File tree

4 files changed

+11
-8
lines changed

4 files changed

+11
-8
lines changed

.github/workflows/tests.yml

+6-3
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.76, 9]
19+
exclude:
20+
- php: 7.4
21+
laravel: 9
1922

2023
steps:
2124
- name: Checkout Code
@@ -31,7 +34,7 @@ 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 "laravel/framework:^${{ matrix.laravel }}" --no-update -n
3538

3639
- name: Install dependencies
3740
uses: nick-invision/retry@v1

CHANGELOG.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ All notable changes to this project will be documented in this file. This projec
77

88
### Added
99

10-
- Package now supports PHP 8.1.
10+
- Package now supports PHP 8.1 and Laravel 9.
1111

1212
## [1.0.1] - 2021-07-31
1313

composer.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@
2424
],
2525
"require": {
2626
"php": "^7.4|^8.0",
27-
"illuminate/support": "^8.0",
27+
"illuminate/support": "^8.0|^9.0",
2828
"laravel-json-api/eloquent": "^1.0.1|^2.0",
29-
"tenantcloud/laravel-boolean-softdeletes": "^3.1"
29+
"tenantcloud/laravel-boolean-softdeletes": "^3.1|^4.0"
3030
},
3131
"require-dev": {
32-
"orchestra/testbench": "^6.23",
32+
"orchestra/testbench": "^6.23|^7.0",
3333
"phpunit/phpunit": "^9.5.10"
3434
},
3535
"autoload": {

tests/lib/Acceptance/Test.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ public function testItForceDeletesModel($deleted): void
134134

135135
$this->schema->repository()->delete((string) $post->getRouteKey());
136136

137-
$this->assertDeleted($post);
137+
$this->assertModelMissing($post);
138138
$this->assertTrue($forceDeleted);
139139
}
140140

0 commit comments

Comments
 (0)