Skip to content

Commit 810addd

Browse files
Add Laravel 10 support (#246)
* Add Laravel 10 support * Run tests for Laravel 10 * Update README to include Laravel 10 in Supported Versions * Update tests.yml Co-authored-by: Dries Vints <[email protected]>
1 parent 9c9928b commit 810addd

File tree

3 files changed

+11
-8
lines changed

3 files changed

+11
-8
lines changed

.github/workflows/tests.yml

+5-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,10 @@ jobs:
1717
fail-fast: true
1818
matrix:
1919
php: ['8.0', 8.1, 8.2]
20-
laravel: [9.x]
20+
laravel: [9, 10]
21+
exclude:
22+
- php: '8.0'
23+
laravel: 10
2124

2225
name: PHP ${{ matrix.php }} - Laravel ${{ matrix.laravel }}
2326

@@ -36,7 +39,7 @@ jobs:
3639

3740
- name: Install dependencies
3841
run: |
39-
composer require "illuminate/contracts=${{ matrix.laravel }}" --dev --no-update
42+
composer require "illuminate/contracts=^${{ matrix.laravel }}" --dev --no-update
4043
composer update --prefer-dist --no-interaction --no-progress
4144
4245
- name: Execute tests

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Only the latest major version of Laravel UI receives bug fixes. The table below
2121
| [1.x](https://github.com/laravel/ui/tree/1.x) | 5.8, 6.x |
2222
| [2.x](https://github.com/laravel/ui/tree/2.x) | 7.x |
2323
| [3.x](https://github.com/laravel/ui/tree/3.x) | 8.x |
24-
| [4.x](https://github.com/laravel/ui/tree/4.x) | 9.x |
24+
| [4.x](https://github.com/laravel/ui/tree/4.x) | 9.x, 10.x |
2525

2626
### Installation
2727

composer.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@
1111
],
1212
"require": {
1313
"php": "^8.0",
14-
"illuminate/console": "^9.21",
15-
"illuminate/filesystem": "^9.21",
16-
"illuminate/support": "^9.21",
17-
"illuminate/validation": "^9.21"
14+
"illuminate/console": "^9.21|^10.0",
15+
"illuminate/filesystem": "^9.21|^10.0",
16+
"illuminate/support": "^9.21|^10.0",
17+
"illuminate/validation": "^9.21|^10.0"
1818
},
1919
"require-dev": {
20-
"orchestra/testbench": "^7.0"
20+
"orchestra/testbench": "^7.0|^8.0"
2121
},
2222
"autoload": {
2323
"psr-4": {

0 commit comments

Comments
 (0)