We have to follow few steps to integrate twilio with laravel 4.x.
Step 1:
First we have to install package. For this we will add below code on composer.json.
"require": {
"dtisgodsson/twilio": "dev-master"
}
Step 2:
Then we will update our composer by running below command.
composer update
Step 3:
After installing the package we hava to add provider in app/config/app.php.For this we will use below code.
'Dtisgodsson\Twilio\TwilioServiceProvider'
Step 4:
Now we will publish that package by using command
php artisan config:publish dtisgodsson/twilio
Step 5:
Now create account on twilio and use sid and authToken and default number on below place.
app/config/packages/dtisgodsson/twilio
by this way we can implement twilio using laravel 4.x
0 Comment(s)