From 93ef59ded69c45948890aa8dc70a2a1c86f98313 Mon Sep 17 00:00:00 2001
From: Abhishek Sharma <52767864+TheAbhishekIN@users.noreply.github.com>
Date: Tue, 19 Mar 2024 11:05:28 +0530
Subject: [PATCH 1/8] Laravel v11 compitable

---
 composer.json | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/composer.json b/composer.json
index 59e3099..0e52df4 100644
--- a/composer.json
+++ b/composer.json
@@ -18,19 +18,19 @@
     "require": {
         "php": "^8.1",
         "spatie/laravel-package-tools": "^1.13.0",
-        "illuminate/contracts": "^9.0|^10.0"
+        "illuminate/contracts": "^9.0|^10.0|^11.0"
     },
     "require-dev": {
         "laravel/pint": "^1.0",
-        "nunomaduro/collision": "^6.0|^7.0",
+        "nunomaduro/collision": "^6.0|^7.0|^8.0",
         "nunomaduro/larastan": "^2.0.1",
-        "orchestra/testbench": "^7.0|^8.0",
+        "orchestra/testbench": "^7.0|^8.0|^9.0",
         "pestphp/pest": "^1.21",
         "pestphp/pest-plugin-laravel": "^1.1",
         "phpstan/extension-installer": "^1.1",
         "phpstan/phpstan-deprecation-rules": "^1.0",
         "phpstan/phpstan-phpunit": "^1.0",
-        "phpunit/phpunit": "^9.5|^10.0"
+        "phpunit/phpunit": "^9.5|^10.0|^11.0"
     },
     "autoload": {
         "psr-4": {
@@ -68,4 +68,4 @@
     },
     "minimum-stability": "dev",
     "prefer-stable": true
-}
\ No newline at end of file
+}

From c0198ce679a54a77bbe8d249fdb0b18d3536df92 Mon Sep 17 00:00:00 2001
From: ousid <imo.ossama1@gmail.com>
Date: Mon, 8 Apr 2024 16:10:17 +0100
Subject: [PATCH 2/8] update `run-tests.yml`

---
 .github/workflows/run-tests.yml | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml
index b662705..ef65b87 100644
--- a/.github/workflows/run-tests.yml
+++ b/.github/workflows/run-tests.yml
@@ -13,17 +13,21 @@ jobs:
       fail-fast: true
       matrix:
         os: [ubuntu-latest, windows-latest]
-        php: [8.1, 8.2]
-        laravel: [9.*, 10.*]
+        php: [8.1, 8.2, 8.3]
+        laravel: [9.*, 10.*, 11.*]
         stability: [prefer-lowest, prefer-stable]
         include:
           - laravel: 9.*
             testbench: 7.*
           - laravel: 10.*
             testbench: 8.*
+          - laravel: 11.*
+            testbench: 9.*
         exclude:
           - laravel: 9.*
             php: 8.2
+          - laravel: 11.*
+            php: 8.1
 
     name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }}
 

From 54c7dbeb8423485443a86103c5d806f45a557d7b Mon Sep 17 00:00:00 2001
From: Oussama <imo.ossama1@gmail.com>
Date: Mon, 8 Apr 2024 16:15:32 +0100
Subject: [PATCH 3/8] Revert "Run Tests CI Updates"

---
 .github/workflows/run-tests.yml | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml
index ef65b87..b662705 100644
--- a/.github/workflows/run-tests.yml
+++ b/.github/workflows/run-tests.yml
@@ -13,21 +13,17 @@ jobs:
       fail-fast: true
       matrix:
         os: [ubuntu-latest, windows-latest]
-        php: [8.1, 8.2, 8.3]
-        laravel: [9.*, 10.*, 11.*]
+        php: [8.1, 8.2]
+        laravel: [9.*, 10.*]
         stability: [prefer-lowest, prefer-stable]
         include:
           - laravel: 9.*
             testbench: 7.*
           - laravel: 10.*
             testbench: 8.*
-          - laravel: 11.*
-            testbench: 9.*
         exclude:
           - laravel: 9.*
             php: 8.2
-          - laravel: 11.*
-            php: 8.1
 
     name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }}
 

From 0b0e568709e0849c59fa90bf151c929b8c031d86 Mon Sep 17 00:00:00 2001
From: ousid <imo.ossama1@gmail.com>
Date: Mon, 8 Apr 2024 16:17:46 +0100
Subject: [PATCH 4/8] update `run-tests.yml`

---
 .github/workflows/run-tests.yml | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml
index ef65b87..00d157a 100644
--- a/.github/workflows/run-tests.yml
+++ b/.github/workflows/run-tests.yml
@@ -2,9 +2,15 @@ name: run-tests
 
 on:
   push:
-    branches: [main]
+    branches:
+      - main
+      - 1.x
+      - 2.x
   pull_request:
-    branches: [main]
+    branches:
+      - main
+      - 1.x
+      - 2.x
 
 jobs:
   test:

From bf6b7ea3f8a49eab22b45b0d8c4c0947b3008bbb Mon Sep 17 00:00:00 2001
From: ousid <imo.ossama1@gmail.com>
Date: Mon, 8 Apr 2024 16:31:53 +0100
Subject: [PATCH 5/8] update `run-tests.yml`

---
 .github/workflows/run-tests.yml | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml
index 82cd8ac..07c5f55 100644
--- a/.github/workflows/run-tests.yml
+++ b/.github/workflows/run-tests.yml
@@ -20,16 +20,20 @@ jobs:
       matrix:
         os: [ubuntu-latest, windows-latest]
         php: [8.1, 8.2]
-        laravel: [9.*, 10.*]
+        laravel: [9.*, 10.*, 11.*]
         stability: [prefer-lowest, prefer-stable]
         include:
           - laravel: 9.*
             testbench: 7.*
           - laravel: 10.*
             testbench: 8.*
+          - laravel: 11.*
+            testbench: 9.*
         exclude:
           - laravel: 9.*
             php: 8.2
+          - larvel: 11.*
+            php: 8.1
 
     name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }}
 

From f664fb26e6df44e36dc9da6593335825b38399ba Mon Sep 17 00:00:00 2001
From: ousid <oussama@coderflex.com>
Date: Sun, 2 Mar 2025 17:20:37 +0400
Subject: [PATCH 6/8] add laravel 12 support

---
 .github/workflows/run-tests.yml                  | 10 ++++++++--
 composer.json                                    | 16 ++++++++--------
 config/laravel_ticket.php                        |  2 +-
 tests/Database/Migrations/create_users_table.php |  2 +-
 4 files changed, 18 insertions(+), 12 deletions(-)

diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml
index 07c5f55..9cf5a8d 100644
--- a/.github/workflows/run-tests.yml
+++ b/.github/workflows/run-tests.yml
@@ -19,8 +19,8 @@ jobs:
       fail-fast: true
       matrix:
         os: [ubuntu-latest, windows-latest]
-        php: [8.1, 8.2]
-        laravel: [9.*, 10.*, 11.*]
+        php: [8.1, 8.2, 8.3]
+        laravel: [9.*, 10.*, 11.*, 12.*]
         stability: [prefer-lowest, prefer-stable]
         include:
           - laravel: 9.*
@@ -29,11 +29,17 @@ jobs:
             testbench: 8.*
           - laravel: 11.*
             testbench: 9.*
+          - laravel: 12.*
+            testbench: 10.*
         exclude:
           - laravel: 9.*
             php: 8.2
+          - laravel: 9.*
+            php: 8.3
           - larvel: 11.*
             php: 8.1
+          - laravel: 12.*
+            php: 8.1
 
     name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }}
 
diff --git a/composer.json b/composer.json
index 0e52df4..79a0117 100644
--- a/composer.json
+++ b/composer.json
@@ -18,19 +18,19 @@
     "require": {
         "php": "^8.1",
         "spatie/laravel-package-tools": "^1.13.0",
-        "illuminate/contracts": "^9.0|^10.0|^11.0"
+        "illuminate/contracts": "^9.0|^10.0|^11.0|^12.0"
     },
     "require-dev": {
         "laravel/pint": "^1.0",
         "nunomaduro/collision": "^6.0|^7.0|^8.0",
-        "nunomaduro/larastan": "^2.0.1",
-        "orchestra/testbench": "^7.0|^8.0|^9.0",
-        "pestphp/pest": "^1.21",
-        "pestphp/pest-plugin-laravel": "^1.1",
+        "nunomaduro/larastan": "^2.0.1|^3.0",
+        "orchestra/testbench": "^7.0|^8.0|^9.0|^10.0",
+        "phpunit/phpunit": "^9.5|^10.0|^11.0",
+        "pestphp/pest": "^1.21|^2.0|^3.7",
+        "pestphp/pest-plugin-arch": "^2.0|^3.0",
         "phpstan/extension-installer": "^1.1",
-        "phpstan/phpstan-deprecation-rules": "^1.0",
-        "phpstan/phpstan-phpunit": "^1.0",
-        "phpunit/phpunit": "^9.5|^10.0|^11.0"
+        "phpstan/phpstan-deprecation-rules": "^1.0|^2.0",
+        "phpstan/phpstan-phpunit": "^1.0|^2.0"
     },
     "autoload": {
         "psr-4": {
diff --git a/config/laravel_ticket.php b/config/laravel_ticket.php
index bb1c898..2c2dfc8 100644
--- a/config/laravel_ticket.php
+++ b/config/laravel_ticket.php
@@ -81,5 +81,5 @@
         'message' => \Coderflex\LaravelTicket\Models\Message::class,
         'category' => \Coderflex\LaravelTicket\Models\Category::class,
         'label' => \Coderflex\LaravelTicket\Models\Label::class,
-    ]
+    ],
 ];
diff --git a/tests/Database/Migrations/create_users_table.php b/tests/Database/Migrations/create_users_table.php
index 57f0097..d52f72d 100644
--- a/tests/Database/Migrations/create_users_table.php
+++ b/tests/Database/Migrations/create_users_table.php
@@ -4,7 +4,7 @@
 use Illuminate\Database\Schema\Blueprint;
 use Illuminate\Support\Facades\Schema;
 
-return new class() extends Migration
+return new class extends Migration
 {
     public function up()
     {

From e3bfd494dd2a49374f84988fd7ba950f187a2e93 Mon Sep 17 00:00:00 2001
From: ousid <oussama@coderflex.com>
Date: Sun, 2 Mar 2025 17:22:31 +0400
Subject: [PATCH 7/8] fix typo

---
 .github/workflows/run-tests.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml
index 9cf5a8d..960badf 100644
--- a/.github/workflows/run-tests.yml
+++ b/.github/workflows/run-tests.yml
@@ -36,7 +36,7 @@ jobs:
             php: 8.2
           - laravel: 9.*
             php: 8.3
-          - larvel: 11.*
+          - laravel: 11.*
             php: 8.1
           - laravel: 12.*
             php: 8.1

From b8cb29936af24644c09e83fa656d714a787af0ab Mon Sep 17 00:00:00 2001
From: ousid <oussama@coderflex.com>
Date: Sun, 2 Mar 2025 17:33:58 +0400
Subject: [PATCH 8/8] update `run-tests.yml`

---
 .github/workflows/run-tests.yml | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)

diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml
index 960badf..74e772c 100644
--- a/.github/workflows/run-tests.yml
+++ b/.github/workflows/run-tests.yml
@@ -20,11 +20,9 @@ jobs:
       matrix:
         os: [ubuntu-latest, windows-latest]
         php: [8.1, 8.2, 8.3]
-        laravel: [9.*, 10.*, 11.*, 12.*]
+        laravel: [10.*, 11.*, 12.*]
         stability: [prefer-lowest, prefer-stable]
         include:
-          - laravel: 9.*
-            testbench: 7.*
           - laravel: 10.*
             testbench: 8.*
           - laravel: 11.*
@@ -32,10 +30,6 @@ jobs:
           - laravel: 12.*
             testbench: 10.*
         exclude:
-          - laravel: 9.*
-            php: 8.2
-          - laravel: 9.*
-            php: 8.3
           - laravel: 11.*
             php: 8.1
           - laravel: 12.*