Skip to content

Commit c091af3

Browse files
committedFeb 25, 2025
feat: Laravel 12.x Compatibility
1 parent 2df3d03 commit c091af3

File tree

2 files changed

+19
-9
lines changed

2 files changed

+19
-9
lines changed
 

‎.github/workflows/phpunit.yml

+14-4
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,17 @@ jobs:
4949
- php: 8.4
5050
laravel: 11.*
5151
phpunit: ~10.5
52-
52+
# Laravel 12.x
53+
- php: 8.2
54+
laravel: 12.*
55+
phpunit: ~11.5
56+
- php: 8.3
57+
laravel: 12.*
58+
phpunit: ~11.5
59+
- php: 8.4
60+
laravel: 12.*
61+
phpunit: ~11.5
62+
5363
name: Laravel${{ matrix.laravel }}-PHP${{ matrix.php }}
5464

5565
steps:
@@ -74,11 +84,11 @@ jobs:
7484
composer install --prefer-dist --no-progress --no-suggest
7585
7686
- name: Run test suite
77-
if: matrix.laravel != '11.*'
78-
run: ./vendor/bin/phpunit -v
87+
if: matrix.laravel != '11.*' && matrix.laravel != '12.*'
88+
run: ./vendor/bin/phpunit
7989

8090
- name: Run test suite laravel 11
81-
if: matrix.laravel == '11.*'
91+
if: matrix.laravel == '11.*' || matrix.laravel == '12.*'
8292
run: ./vendor/bin/phpunit -c phpunit.10.xml
8393

8494
- name: Run Coveralls

‎composer.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,16 @@
2121
"license": "Apache-2.0",
2222
"require": {
2323
"php": ">=8.0",
24-
"illuminate/support": "~8.0|~9.0|~10.0|~11.0",
25-
"illuminate/database": "~8.0|~9.0|~10.0|~11.0",
26-
"illuminate/console": "~8.0|~9.0|~10.0|~11.0",
24+
"illuminate/support": "~8.0|~9.0|~10.0|~11.0|~12.0",
25+
"illuminate/database": "~8.0|~9.0|~10.0|~11.0|~12.0",
26+
"illuminate/console": "~8.0|~9.0|~10.0|~11.0|~12.0",
2727
"casbin/casbin": "~4.0"
2828
},
2929
"require-dev": {
30-
"phpunit/phpunit": "~9.0|~10.5",
30+
"phpunit/phpunit": "~9.0|~10.5|^11.5.3",
3131
"php-coveralls/php-coveralls": "^2.7",
3232
"mockery/mockery": "^1.0",
33-
"laravel/laravel": "~9.0|~10.0|~11.0"
33+
"laravel/laravel": "~9.0|~10.0|~11.0|~12.0"
3434
},
3535
"autoload": {
3636
"psr-4": {

0 commit comments

Comments
 (0)