diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index cf6759c..2fe0d0e 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -8,19 +8,18 @@ jobs:
strategy:
matrix:
- php: ['8.0', 8.1, 8.2]
- laravel: [11, 10, 9]
- include:
- - { laravel: 11, phpunit: 11 }
- - { laravel: 10, phpunit: 10 }
- - { laravel: 9, phpunit: 9 }
+ php: [8.2, 8.3, 8.4]
+ lib:
+ - laravel: ^13.0.x-dev
+ - laravel: ^12.0
+ - laravel: ^11.0
exclude:
- - { php: 8.0, laravel: 10 }
- - { php: 8.0, laravel: 11 }
- - { php: 8.1, laravel: 11 }
+ - php: 8.2
+ lib:
+ laravel: ^13.0.x-dev
steps:
- - uses: actions/checkout@v4
+ - uses: actions/checkout@v3
- name: Setup PHP
uses: shivammathur/setup-php@v2
@@ -28,17 +27,16 @@ jobs:
php-version: ${{ matrix.php }}
coverage: xdebug
- - run: composer require "laravel/framework:^${{ matrix.laravel }}" --dev
- - run: composer require "phpunit/phpunit:^${{ matrix.phpunit }}" --dev
+ - run: composer require "laravel/framework:${{ matrix.lib.laravel }}" --dev
- run: mkdir -p build/logs
- - run: vendor/bin/phpunit -c 'phpunit${{ matrix.phpunit }}.xml' --coverage-clover build/logs/clover.xml
+ - run: vendor/bin/phpunit --coverage-clover build/logs/clover.xml
- name: Upload Coverage
uses: nick-invision/retry@v2
env:
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COVERALLS_PARALLEL: 'true'
- COVERALLS_FLAG_NAME: 'laravel:${{ matrix.laravel }}'
+ COVERALLS_FLAG_NAME: 'laravel:${{ matrix.lib.laravel }}'
with:
timeout_minutes: 1
max_attempts: 3
diff --git a/.scrutinizer.yml b/.scrutinizer.yml
index 1388274..cc94f5c 100644
--- a/.scrutinizer.yml
+++ b/.scrutinizer.yml
@@ -18,7 +18,7 @@ build:
- php-scrutinizer-run
environment:
- php: '8.1.8'
+ php: '8.3.17'
dependencies:
before:
diff --git a/README.md b/README.md
index 9492e52..60c0a78 100644
--- a/README.md
+++ b/README.md
@@ -8,8 +8,11 @@ Null Guard for Laravel. Designed for Middleware-based authentication and testing
## Requirements
-- PHP: `^8.0`
-- Laravel: `^9.0 || ^10.0 || ^11.0`
+- PHP: `^8.2`
+- Laravel: `^11.0 || ^12.0`
+
+> [!NOTE]
+> Older versions have outdated dependency requirements. If you cannot prepare the latest environment, please refer to past releases.
## Installing
diff --git a/composer.json b/composer.json
index b1728dd..e8a4027 100644
--- a/composer.json
+++ b/composer.json
@@ -22,15 +22,15 @@
},
"require": {
"php": "^8.0",
- "illuminate/auth": "^9.0 || ^10.0 || ^11.0",
- "illuminate/contracts": "^9.0 || ^10.0 || ^11.0",
- "illuminate/support": "^9.0 || ^10.0 || ^11.0"
+ "illuminate/auth": "^9.0 || ^10.0 || ^11.0 || ^12.0 || ^13.0",
+ "illuminate/contracts": "^9.0 || ^10.0 || ^11.0 || ^12.0 || ^13.0",
+ "illuminate/support": "^9.0 || ^10.0 || ^11.0 || ^12.0 || ^13.0"
},
"require-dev": {
"orchestra/testbench": "*",
- "orchestra/testbench-core": ">=7.0",
- "phpunit/phpunit": ">=9.5",
- "mockery/mockery": "^1.3.3 || ^1.4.2"
+ "orchestra/testbench-core": ">=9.0",
+ "phpunit/phpunit": ">=11.0",
+ "mockery/mockery": "^1.6.12"
},
"minimum-stability": "dev",
"prefer-stable": true,
diff --git a/phpunit.xml b/phpunit.xml
new file mode 100644
index 0000000..f22e8d3
--- /dev/null
+++ b/phpunit.xml
@@ -0,0 +1,25 @@
+
+
+
+
+
+ ./src
+
+
+
+
+
+
+
+ ./tests
+
+
+
diff --git a/phpunit10.xml b/phpunit10.xml
deleted file mode 100644
index e0e3371..0000000
--- a/phpunit10.xml
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-
-
- src
-
-
-
-
- ./tests/
-
-
-
diff --git a/phpunit11.xml b/phpunit11.xml
deleted file mode 100644
index fd9e1f4..0000000
--- a/phpunit11.xml
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-
-
- src
-
-
-
-
- ./tests/
-
-
-
diff --git a/phpunit9.xml b/phpunit9.xml
deleted file mode 100644
index 06da286..0000000
--- a/phpunit9.xml
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-
-
- src
-
-
-
-
- ./tests/
-
-
-