Skip to content

Commit 783a74f

Browse files
Merge pull request #143 from Norris1z/master
Support Laravel 5.5+ auto package discovery
2 parents e880511 + 8d06470 commit 783a74f

File tree

2 files changed

+16
-3
lines changed

2 files changed

+16
-3
lines changed

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,13 @@ Begin by installing this package through Composer. Run this command from the Ter
1616
```bash
1717
composer require aloha/twilio
1818
```
19+
If you're using Laravel 5.5+, this is all there is to do.
1920

20-
## Laravel integration
21+
Should you still be on older versions of Laravel, the final steps for you are to add the service provider of the package and alias the package. To do this open your `config/app.php` file.
2122

22-
To wire this up in your Laravel project, whether it's built in Laravel 4 or 5, you need to add the service provider.
23+
## Integration for older versions of Laravel (5.5 -)
24+
25+
To wire this up in your Laravel project, you need to add the service provider.
2326
Open `app.php`, and add a new item to the providers array.
2427

2528
```php

composer.json

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,5 +39,15 @@
3939
"test": "phpunit",
4040
"cs": "php-cs-fixer fix src/ --level=psr2"
4141
},
42-
"minimum-stability": "stable"
42+
"minimum-stability": "stable",
43+
"extra": {
44+
"laravel": {
45+
"providers": [
46+
"Aloha\\Twilio\\Support\\Laravel\\ServiceProvider"
47+
],
48+
"aliases": {
49+
"Twilio": "Aloha\\Twilio\\Support\\Laravel\\Facade"
50+
}
51+
}
52+
}
4353
}

0 commit comments

Comments
 (0)