File tree Expand file tree Collapse file tree 1 file changed +4
-9
lines changed
Expand file tree Collapse file tree 1 file changed +4
-9
lines changed Original file line number Diff line number Diff line change @@ -21,12 +21,12 @@ Once composer is finished, you need to add the service provider. Open `app/confi
2121
2222Then, add a Facade for more convenient usage. In ` app/config/app.php ` add the following line to the ` aliases ` array:
2323
24- 'Twilio' => 'Aloha\Twilio\Facades\Twilio',
24+ 'Twilio' => 'Aloha\Twilio\Facades\Twilio',
2525
2626Publish config files from the Terminal
2727
28- php artisan config:publish aloha/twilio
29-
28+ php artisan config:publish aloha/twilio
29+
3030Edit ` config/packages/aloha/twilio ` with your appropriate Twilio settings
3131
3232
@@ -35,30 +35,25 @@ Edit `config/packages/aloha/twilio` with your appropriate Twilio settings
3535Sending a SMS Message
3636
3737``` php
38- <?php
3938Twilio::message('+18085551212', 'Pink Elephants and Happy Rainbows');
4039```
4140
4241Sending a MMS Message
4342
4443``` php
45- <?php
4644Twilio::messageWithMedia('+18085551212', 'Pink Elephants and Happy Rainbows', array('http://placehold.it/200x200'));
4745```
4846
4947Creating a Call
5048
5149``` php
52- <?php
5350Twilio::call('+18085551212', 'http://foo.com/call.xml');
5451```
5552
5653Generating TwiML
5754
5855``` php
59- <?php
60- $twiml =
61- Twilio::twiml(function($message) {
56+ $twiml = Twilio::twiml(function($message) {
6257 $message->say('Hello');
6358 $message->play('https://api.twilio.com/cowbell.mp3', array('loop' => 5));
6459});
You can’t perform that action at this time.
0 commit comments