@@ -15,7 +15,6 @@ You are viewing the `3.x` documentation. [Click here](https://github.com/laravel
15
15
## Contents
16
16
17
17
- [ Installation] ( #installation )
18
- - [Setting up your Twilio account](#setting-up-your-twilio-account)
19
18
- [ Usage] ( #usage )
20
19
- [Available Message methods](#available-message-methods)
21
20
- [ Changelog] ( #changelog )
@@ -45,6 +44,7 @@ TWILIO_ACCOUNT_SID=1234 # always required
45
44
TWILIO_FROM=100000000 # optional default from
46
45
TWILIO_ALPHA_SENDER=HELLO # optional
47
46
TWILIO_DEBUG_TO=23423423423 # Set a number that call calls/messages should be routed to for debugging
47
+ TWILIO_SMS_SERVICE_SID=MG0a0aaaaaa00aa00a00a000a00000a00a # Optional but recommended
48
48
```
49
49
50
50
### Advanced configuration
@@ -62,6 +62,13 @@ exception codes from [the documentation](https://www.twilio.com/docs/api/errors)
62
62
If you want to suppress all errors, you can set the option to ` ['*'] ` . The errors will not be logged but notification
63
63
failed events will still be emitted.
64
64
65
+ #### Recommended Configuration
66
+
67
+ Twilio recommends always using a [ Messaging Service] ( https://www.twilio.com/docs/sms/services ) because it gives you
68
+ access to features like Advanced Opt-Out, Sticky Sender, Scaler, Geomatch, Shortcode Reroute, and Smart Encoding.
69
+
70
+ Having issues with SMS? Check Twilio's [ best practices] ( https://www.twilio.com/docs/sms/services/services-best-practices ) .
71
+
65
72
## Upgrading from 2.x to 3.x
66
73
67
74
If you're upgrading from version ` 2.x ` , you'll need to make sure that your set environment variables match those above
@@ -161,6 +168,7 @@ public function routeNotificationForTwilio()
161
168
162
169
- ` from('') ` : Accepts a phone to use as the notification sender.
163
170
- ` content('') ` : Accepts a string value for the notification body.
171
+ - ` messagingServiceSid('') ` : Accepts a messaging service SID to handle configuration.
164
172
165
173
#### TwilioCallMessage
166
174
0 commit comments