Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

Commit ca3d560

Browse files
authored
Merge pull request #33 from TwilioDevEd/twilio-php-6
Update to Twilio SDK 6.x
2 parents 45b01cf + eb27595 commit ca3d560

File tree

4 files changed

+14
-101
lines changed

4 files changed

+14
-101
lines changed

.env.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ APP_ENV=local
22
APP_DEBUG=false
33
APP_KEY=SomeRandomString
44

5-
TWILIO_AUTH_TOKEN=YOUR_AUTH_TOKEN
65
TWILIO_ACCOUNT_SID=YOUR_AUTH_SID
6+
TWILIO_AUTH_TOKEN=YOUR_AUTH_TOKEN
77
TWILIO_NUMBER=

app/Exceptions/Handler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ private function _sendSms($to, $message)
104104
// 'mediaUrl' => $imageUrl
105105
]
106106
);
107-
Log::info('Message sent to ' . $twilioNumber);
107+
Log::info('Message sent to ' . $to);
108108
} catch (TwilioException $e) {
109109
Log::error(
110110
'Could not send SMS notification.' .

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"require": {
88
"php": ">=5.5.9",
99
"laravel/framework": "5.1.*",
10-
"twilio/sdk": "^5.0"
10+
"twilio/sdk": "^6.0"
1111
},
1212
"require-dev": {
1313
"phpunit/phpunit": "4.8.28"

composer.lock

Lines changed: 11 additions & 98 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)