You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Remove string type cast for payload values. Add setSandboxMode method. (#8)
* add setSandboxMode method
* remove type casting to allow addDynamicTemplateData to accept arrays. (#7)
* update test cases
* add test case
* refactor
* update readme and changelog
Co-authored-by: Tim Gieseking <[email protected]>
Copy file name to clipboardExpand all lines: CHANGELOG.md
+10-5Lines changed: 10 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,19 +2,24 @@
2
2
3
3
All notable changes will be documented in this file
4
4
5
+
## 2.2.0 - 2022-09-24
6
+
7
+
- You can now pass nested arrays, numbers, bools as the payload. Previously, the library only accepted strings. (Thanks [timstl](https://github.com/swiftmade/laravel-sendgrid-notification-channel/pull/7))
8
+
- Added `setSandboxMode($bool)` method on the `SendGridMessage` object, so you can now control sandbox mode using a variable.
9
+
5
10
## 2.1.0 - 2022-08-12
6
11
7
-
- Added support for Sentry SDK v8
8
-
- You can now enable sandbox mode while sending emails. (Thanks [@zbrody](https://github.com/swiftmade/laravel-sendgrid-notification-channel/pull/3))
12
+
-Added support for Sentry SDK v8
13
+
-You can now enable sandbox mode while sending emails. (Thanks [@zbrody](https://github.com/swiftmade/laravel-sendgrid-notification-channel/pull/3))
Copy file name to clipboardExpand all lines: README.md
+9-4Lines changed: 9 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -99,17 +99,22 @@ class ExampleNotification extends Notification
99
99
100
100
💡 Unless you set it explicitly, the **From** address will be set to `config('mail.from.address')` and the **To** value will be what returns from `$notifiable->routeNotificationFor('mail');`
101
101
102
-
### Enabling Sandbox Mode
102
+
### Sandbox Mode
103
103
104
-
To enable sandbox mode you will need to chain on the `enableSandboxMode()` to the message object.
104
+
The sandbox mode is **off** by default. You can use the `setSandboxMode($bool)`method to enable/disable it.
105
105
106
106
Example:
107
107
108
108
```php
109
109
return (new SendGridMessage('Your SendGrid template ID'))
0 commit comments