File tree Expand file tree Collapse file tree 2 files changed +15
-16
lines changed
Expand file tree Collapse file tree 2 files changed +15
-16
lines changed Original file line number Diff line number Diff line change 33 "description" : " A boilerplate for contributions." ,
44 "homepage" : " https://github.com/laravel-notification-channels/twilio" ,
55 "license" : " MIT" ,
6- "authors" : [
7- {
8- "name" : " Gregorio Hernández Caso" ,
9- 10- "homepage" : " https://github.com/gregoriohc" ,
11- "role" : " Developer"
12- }
13- ],
6+ "authors" : [{
7+ "name" : " Gregorio Hernández Caso" ,
8+ 9+ "homepage" : " https://github.com/gregoriohc" ,
10+ "role" : " Developer"
11+ }],
1412 "require" : {
1513 "php" : " >=5.5.9" ,
1614 "twilio/sdk" : " ~5.16" ,
17- "illuminate/notifications" : " ^5.1" ,
18- "illuminate/support" : " ^5.1" ,
19- "illuminate/events" : " ^5.1" ,
20- "illuminate/queue" : " ^5.1"
15+ "illuminate/notifications" : " ^5.1|^6.0 " ,
16+ "illuminate/support" : " ^5.1|^6.0 " ,
17+ "illuminate/events" : " ^5.1|^6.0 " ,
18+ "illuminate/queue" : " ^5.1|^6.0 "
2119 },
2220 "require-dev" : {
2321 "mockery/mockery" : " ^0.9.5" ,
Original file line number Diff line number Diff line change 22
33namespace NotificationChannels \Twilio ;
44
5+ use Illuminate \Support \Arr ;
56use Illuminate \Support \ServiceProvider ;
67use Twilio \Rest \Client as TwilioService ;
78
@@ -23,14 +24,14 @@ public function boot()
2324
2425 $ this ->app ->bind (TwilioService::class, function () {
2526 $ config = $ this ->app ['config ' ]['services.twilio ' ];
26- $ account_sid = array_get ($ config , 'account_sid ' );
27- $ username = array_get ($ config , 'username ' );
27+ $ account_sid = Arr:: get ($ config , 'account_sid ' );
28+ $ username = Arr:: get ($ config , 'username ' );
2829 if (! empty ($ username )) {
29- $ password = array_get ($ config , 'password ' );
30+ $ password = Arr:: get ($ config , 'password ' );
3031
3132 return new TwilioService ($ username , $ password , $ account_sid );
3233 } else {
33- $ auth_token = array_get ($ config , 'auth_token ' );
34+ $ auth_token = Arr:: get ($ config , 'auth_token ' );
3435
3536 return new TwilioService ($ account_sid , $ auth_token );
3637 }
You can’t perform that action at this time.
0 commit comments