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
This package makes it easy to send notifications using [SendGrid](https://sendgrid.com) Dynamic Emails API with Laravel 5.5+, 6.x and 7.x
5
+
Allows you to send Laravel notifications using Sendgrid's [Dynamic Transactional Templates](https://docs.sendgrid.com/ui/sending-email/how-to-send-an-email-with-dynamic-transactional-templates) feature. Supports Laravel 7.x, 8.x and 9.x.
6
6
7
-
## Contents
7
+
(For older versions of Laravel, install v1)
8
8
9
-
-[Installation](#installation)
10
-
-[Usage](#usage)
11
-
-[Changelog](#changelog)
12
-
-[Testing](#testing)
13
-
-[Security](#security)
14
-
-[Contributing](#contributing)
15
-
-[Credits](#credits)
16
-
-[License](#license)
9
+
## Contents
17
10
11
+
-[Installation](#installation)
12
+
-[Usage](#usage)
13
+
-[Changelog](#changelog)
14
+
-[Testing](#testing)
15
+
-[Security](#security)
16
+
-[Contributing](#contributing)
17
+
-[Credits](#credits)
18
+
-[License](#license)
18
19
19
20
## Installation
20
21
@@ -24,19 +25,34 @@ To get started, you need to require this package:
The service provider will be auto-detected by Laravel. So, no need to register it manually.
28
+
The service provider will be auto-detected by Laravel. If you've turned auto-discovery off, add the following service provider in your `config/app.php`.
@@ -79,18 +95,17 @@ class ExampleNotification extends Notification
79
95
80
96
```
81
97
82
-
`toSendGrid` method will receive a `$notifiable` entity and should return a `NotificationChannels\SendGrid\SendGridMessage` instance.
83
-
84
-
💡 Unless you set them explicitly, **From** address will be `config('mail.from.address')` and the **To** value will be what returns from `$notifiable->routeNotificationFor('mail');`
98
+
`toSendGrid` method will receive a `$notifiable` entity and should return a `NotificationChannels\SendGrid\SendGridMessage` instance.
85
99
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');`
86
101
87
102
## Changelog
88
103
89
104
Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.
90
105
91
106
## Testing
92
107
93
-
```bash
108
+
```bash
94
109
$ composer test
95
110
```
96
111
@@ -104,9 +119,9 @@ Please see [CONTRIBUTING](CONTRIBUTING.md) for details.
0 commit comments