From 2c90b9c2bce666da2e0f1ee62aed77ee5fe94ba3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20=C3=96zisik?= Date: Tue, 25 Feb 2025 12:32:46 +0200 Subject: [PATCH 1/5] add laravel 12 support --- .github/workflows/main.yml | 10 +++++++++- composer.json | 4 ++-- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 642c56c..1f923c6 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -19,7 +19,7 @@ jobs: # os: [ubuntu-latest, windows-latest] os: [ubuntu-latest] php: [7.4, 8.0, 8.1, 8.2, 8.3] - laravel: [7.*, 8.*, 9.*, 10.*, 11.*] + laravel: [7.*, 8.*, 9.*, 10.*, 11.*, 12.*] #stability: [prefer-lowest, prefer-stable] stability: [prefer-stable] exclude: @@ -48,6 +48,14 @@ jobs: php: 8.0 - laravel: 11.* php: 8.1 + # Laravel 12 doesn't support < PHP 8.2 + - laravel: 12.* + php: 7.4 + - laravel: 12.* + php: 8.0 + - 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 924e8cf..e59a900 100644 --- a/composer.json +++ b/composer.json @@ -13,8 +13,8 @@ ], "require": { "php": ">=7.2", - "illuminate/notifications": "^7.0|^8.0|^9.0|^10.0|^11.0", - "illuminate/support": "^7.0|^8.0|^9.0|^10.0|^11.0", + "illuminate/notifications": "^7.0|^8.0|^9.0|^10.0|^11.0|^12.0", + "illuminate/support": "^7.0|^8.0|^9.0|^10.0|^11.0|^12.0", "sendgrid/sendgrid": "^7.11|^8.0" }, "require-dev": { From c5085ad738a4d4172b9790e0c251169133b7eeb3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20=C3=96zisik?= Date: Tue, 25 Feb 2025 12:35:43 +0200 Subject: [PATCH 2/5] support testbench 10.x --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index e59a900..9f7dbd9 100644 --- a/composer.json +++ b/composer.json @@ -20,7 +20,7 @@ "require-dev": { "friendsofphp/php-cs-fixer": "^3.8", "mockery/mockery": "^1.5", - "orchestra/testbench": "^5.0|^6.0|^7.0|^8.0|^9.0", + "orchestra/testbench": "^5.0|^6.0|^7.0|^8.0|^9.0|^10.0", "phpunit/phpunit": "^8.4|^9.0|^10.0" }, "autoload": { From 65cb0fc061129caa6612a85be11da623b9a17349 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20=C3=96zisik?= Date: Tue, 25 Feb 2025 12:38:42 +0200 Subject: [PATCH 3/5] update phpunit --- composer.json | 2 +- tests/SendGridChannelTest.php | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/composer.json b/composer.json index 9f7dbd9..74b9ca3 100644 --- a/composer.json +++ b/composer.json @@ -21,7 +21,7 @@ "friendsofphp/php-cs-fixer": "^3.8", "mockery/mockery": "^1.5", "orchestra/testbench": "^5.0|^6.0|^7.0|^8.0|^9.0|^10.0", - "phpunit/phpunit": "^8.4|^9.0|^10.0" + "phpunit/phpunit": "^8.4|^9.0|^10.0|^11.0" }, "autoload": { "psr-4": { diff --git a/tests/SendGridChannelTest.php b/tests/SendGridChannelTest.php index ed41696..3dc6610 100644 --- a/tests/SendGridChannelTest.php +++ b/tests/SendGridChannelTest.php @@ -17,6 +17,8 @@ class SendGridChannelTest extends TestCase public function tearDown(): void { Mockery::close(); + + parent::tearDown(); } public function testEmailIsSentViaSendGrid() @@ -69,12 +71,12 @@ public function toSendGrid($notifiable) Event::assertDispatched( NotificationSent::class, - fn ($event) => $event->channel === SendGridChannel::class + fn($event) => $event->channel === SendGridChannel::class ); Event::assertDispatched( NotificationSent::class, - fn ($event) => $event->response instanceof Response + fn($event) => $event->response instanceof Response ); } From db8b42226919dd7f9d8147b7a5b1e9024a469b15 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20=C3=96zisik?= Date: Tue, 25 Feb 2025 12:42:38 +0200 Subject: [PATCH 4/5] update changelog --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 574eee2..369c3f2 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ All notable changes will be documented in this file +## 2.8.0 - 2025-02-25 + +Added support for Laravel 12. + ## 2.7.0 - 2024-03-07 Added support for Laravel 11. From 5125dd9980a4168c93535948beb5c54c9a812af7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20=C3=96zisik?= Date: Tue, 25 Feb 2025 12:43:19 +0200 Subject: [PATCH 5/5] update changelog --- CHANGELOG.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 369c3f2..b114623 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,10 +2,14 @@ All notable changes will be documented in this file -## 2.8.0 - 2025-02-25 +## 2.9.0 - 2025-02-25 Added support for Laravel 12. +## 2.8.0 - 2024-05-23 + +Support multiple recipients (TOs) by @ArronKing in #22 + ## 2.7.0 - 2024-03-07 Added support for Laravel 11.