From 3cb7fb0315b6778224481637730b55344c4a4b4d Mon Sep 17 00:00:00 2001
From: Alexis Saettler <alexis@saettler.org>
Date: Thu, 29 Feb 2024 09:01:11 +0100
Subject: [PATCH] Add Laravel 11 support

---
 .github/workflows/run-tests.yml |  6 ++++--
 composer.json                   | 13 ++++++-------
 2 files changed, 10 insertions(+), 9 deletions(-)

diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml
index ae6971f..959f6ee 100644
--- a/.github/workflows/run-tests.yml
+++ b/.github/workflows/run-tests.yml
@@ -13,12 +13,14 @@ jobs:
       fail-fast: true
       matrix:
         os: [ubuntu-latest, windows-latest]
-        php: ['8.1', '8.2','8.3']
-        laravel: ['9.*','10.*']
+        php: ['8.1','8.2','8.3']
+        laravel: ['9.*','10.*','11.*']
         stability: [prefer-lowest, prefer-stable]
         exclude:
           - laravel: '9.*'
             stability: prefer-lowest
+          - laravel: '11.*'
+            php: '8.1'
 
     name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }}
 
diff --git a/composer.json b/composer.json
index 9ea8b68..652556b 100644
--- a/composer.json
+++ b/composer.json
@@ -22,21 +22,20 @@
     ],
     "require": {
         "php": "^8.1",
-        "illuminate/contracts": "^9.0|^10.0",
-        "illuminate/http": "^9.0|^10.0",
+        "illuminate/contracts": "^9.0|^10.0|^11.0",
+        "illuminate/http": "^9.0|^10.0|^11.0",
         "spatie/laravel-package-tools": "^1.9.2"
     },
     "require-dev": {
         "laravel/pint": "^0.2.2",
-        "nunomaduro/collision": "^6.0",
+        "nunomaduro/collision": "^6.0|^7.0|^8.0",
         "larastan/larastan": "^2.0.1",
-        "orchestra/testbench": "^7.0|^8.0",
-        "pestphp/pest": "^1.21",
-        "pestphp/pest-plugin-laravel": "^1.1",
+        "orchestra/testbench": "^7.0|^8.0|^9.0",
+        "pestphp/pest-plugin-laravel": "^1.1|^2.0",
         "phpstan/extension-installer": "^1.1",
         "phpstan/phpstan-deprecation-rules": "^1.0",
         "phpstan/phpstan-phpunit": "^1.0",
-        "phpunit/phpunit": "^9.5",
+        "phpunit/phpunit": "^9.5|^10.0",
         "spatie/laravel-ray": "^1.26"
     },
     "autoload": {