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 [Twilio notifications](https://documentation.twilio.com/docs) with Laravel 11.x
8
+
This package makes it easy to send [Twilio notifications](https://documentation.twilio.com/docs) with Laravel 11.x / 12.x
9
9
10
10
## Contents
11
11
@@ -86,7 +86,7 @@ suppressed.
86
86
87
87
## Usage
88
88
89
-
Now you can use the channel in your `via()` method inside the notification:
89
+
Now you can use the channel in your `via()` method inside the notification to send an **SMS**:
90
90
91
91
```php
92
92
use NotificationChannels\Twilio\TwilioChannel;
@@ -108,7 +108,7 @@ class AccountApproved extends Notification
108
108
}
109
109
```
110
110
111
-
You can also send an MMS:
111
+
You can also send an **MMS**:
112
112
113
113
```php
114
114
use NotificationChannels\Twilio\TwilioChannel;
@@ -131,7 +131,7 @@ class AccountApproved extends Notification
131
131
}
132
132
```
133
133
134
-
You can also send using Content Templates:
134
+
You can also send using **Content Templates**:
135
135
136
136
```php
137
137
use NotificationChannels\Twilio\TwilioChannel;
@@ -157,9 +157,10 @@ class AccountApproved extends Notification
157
157
}
158
158
```
159
159
160
-
*Note: if sending via WhatsApp, you must add `whatsapp:` to the beginning of the phone number (i.e. `->from('whatsapp:+61428000382')`). The number must also be approved as a [WhatsApp Sender](https://www.twilio.com/console/sms/whatsapp/senders).*
160
+
> [!NOTE]
161
+
> If sending via WhatsApp, you must add `whatsapp:` to the beginning of the phone number (i.e. `->from('whatsapp:+61428000382')`). The number must also be approved as a [WhatsApp Sender](https://www.twilio.com/console/sms/whatsapp/senders).
161
162
162
-
Or create a Twilio call:
163
+
Or create a **Twilio Call Message**:
163
164
164
165
```php
165
166
use NotificationChannels\Twilio\TwilioChannel;
@@ -198,6 +199,15 @@ public function routeNotificationForTwilio()
198
199
-`content('')`: Accepts a string value for the notification body.
199
200
-`messagingServiceSid('')`: Accepts a messaging service SID to handle configuration.
200
201
202
+
#### TwilioMmsMessage
203
+
204
+
-`mediaUrl('')`: Set the message media url.
205
+
206
+
#### TwilioContentTemplateMessage
207
+
208
+
-`contentSid('')`: Set the content sid (starting with H).
209
+
-`contentVariables([...])`: Set the content variables.
210
+
201
211
#### TwilioCallMessage
202
212
203
213
-`from('')`: Accepts a phone to use as the notification sender.
0 commit comments