Skip to content

Commit 0a8fa70

Browse files
authored
[2.x] Laravel 9 support (#948)
* Laravel 9 support * Inertia temp constraint * Update composer.json * Update tests.yml * Update composer.json * Update composer.json * Update composer.json
1 parent 7ca6f08 commit 0a8fa70

File tree

2 files changed

+13
-8
lines changed

2 files changed

+13
-8
lines changed

Diff for: .github/workflows/tests.yml

+8-3
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,13 @@ jobs:
1313
strategy:
1414
fail-fast: true
1515
matrix:
16-
php: [7.3, 7.4, 8.0, 8.1]
17-
laravel: [^8.0]
16+
php: [7.3, 7.4, '8.0', 8.1]
17+
laravel: [8, 9]
18+
exclude:
19+
- php: 7.3
20+
laravel: 9
21+
- php: 7.4
22+
laravel: 9
1823

1924
name: PHP ${{ matrix.php }} - Laravel ${{ matrix.laravel }}
2025

@@ -32,7 +37,7 @@ jobs:
3237

3338
- name: Install dependencies
3439
run: |
35-
composer require "illuminate/contracts=${{ matrix.laravel }}" --no-update
40+
composer require "illuminate/contracts=^${{ matrix.laravel }}" --no-update
3641
composer update --prefer-dist --no-interaction --no-progress
3742
3843
- name: Execute tests

Diff for: composer.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,15 @@
1616
"require": {
1717
"php": "^7.3|^8.0",
1818
"ext-json": "*",
19-
"illuminate/support": "^8.0",
19+
"illuminate/support": "^8.0|^9.0",
2020
"jenssegers/agent": "^2.6",
21-
"laravel/fortify": "^1.6.1"
21+
"laravel/fortify": "^1.9"
2222
},
2323
"require-dev": {
24-
"inertiajs/inertia-laravel": "^0.3",
25-
"laravel/sanctum": "^2.6",
24+
"inertiajs/inertia-laravel": "^0.5.2",
25+
"laravel/sanctum": "^2.7",
2626
"mockery/mockery": "^1.0",
27-
"orchestra/testbench": "^6.0",
27+
"orchestra/testbench": "^6.0|^7.0",
2828
"phpunit/phpunit": "^9.3"
2929
},
3030
"autoload": {

0 commit comments

Comments
 (0)