Skip to content

Commit 74386ac

Browse files
authored
Add Laravel 12 support (#23)
* add laravel 12 support * support testbench 10.x * update phpunit * update changelog * update changelog
1 parent 914c25d commit 74386ac

File tree

4 files changed

+25
-7
lines changed

4 files changed

+25
-7
lines changed

.github/workflows/main.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
# os: [ubuntu-latest, windows-latest]
2020
os: [ubuntu-latest]
2121
php: [7.4, 8.0, 8.1, 8.2, 8.3]
22-
laravel: [7.*, 8.*, 9.*, 10.*, 11.*]
22+
laravel: [7.*, 8.*, 9.*, 10.*, 11.*, 12.*]
2323
#stability: [prefer-lowest, prefer-stable]
2424
stability: [prefer-stable]
2525
exclude:
@@ -48,6 +48,14 @@ jobs:
4848
php: 8.0
4949
- laravel: 11.*
5050
php: 8.1
51+
# Laravel 12 doesn't support < PHP 8.2
52+
- laravel: 12.*
53+
php: 7.4
54+
- laravel: 12.*
55+
php: 8.0
56+
- laravel: 12.*
57+
php: 8.1
58+
5159

5260
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }}
5361

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@
22

33
All notable changes will be documented in this file
44

5+
## 2.9.0 - 2025-02-25
6+
7+
Added support for Laravel 12.
8+
9+
## 2.8.0 - 2024-05-23
10+
11+
Support multiple recipients (TOs) by @ArronKing in #22
12+
513
## 2.7.0 - 2024-03-07
614

715
Added support for Laravel 11.

composer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@
1313
],
1414
"require": {
1515
"php": ">=7.2",
16-
"illuminate/notifications": "^7.0|^8.0|^9.0|^10.0|^11.0",
17-
"illuminate/support": "^7.0|^8.0|^9.0|^10.0|^11.0",
16+
"illuminate/notifications": "^7.0|^8.0|^9.0|^10.0|^11.0|^12.0",
17+
"illuminate/support": "^7.0|^8.0|^9.0|^10.0|^11.0|^12.0",
1818
"sendgrid/sendgrid": "^7.11|^8.0"
1919
},
2020
"require-dev": {
2121
"friendsofphp/php-cs-fixer": "^3.8",
2222
"mockery/mockery": "^1.5",
23-
"orchestra/testbench": "^5.0|^6.0|^7.0|^8.0|^9.0",
24-
"phpunit/phpunit": "^8.4|^9.0|^10.0"
23+
"orchestra/testbench": "^5.0|^6.0|^7.0|^8.0|^9.0|^10.0",
24+
"phpunit/phpunit": "^8.4|^9.0|^10.0|^11.0"
2525
},
2626
"autoload": {
2727
"psr-4": {

tests/SendGridChannelTest.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ class SendGridChannelTest extends TestCase
1717
public function tearDown(): void
1818
{
1919
Mockery::close();
20+
21+
parent::tearDown();
2022
}
2123

2224
public function testEmailIsSentViaSendGrid()
@@ -69,12 +71,12 @@ public function toSendGrid($notifiable)
6971

7072
Event::assertDispatched(
7173
NotificationSent::class,
72-
fn ($event) => $event->channel === SendGridChannel::class
74+
fn($event) => $event->channel === SendGridChannel::class
7375
);
7476

7577
Event::assertDispatched(
7678
NotificationSent::class,
77-
fn ($event) => $event->response instanceof Response
79+
fn($event) => $event->response instanceof Response
7880
);
7981
}
8082

0 commit comments

Comments
 (0)