Skip to content

Commit

Permalink
Support Laravel 5.5+ auto package discovery
Browse files Browse the repository at this point in the history
  • Loading branch information
Norris1z committed Oct 4, 2017
1 parent e880511 commit 8d06470
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,13 @@ Begin by installing this package through Composer. Run this command from the Ter
```bash
composer require aloha/twilio
```
If you're using Laravel 5.5+, this is all there is to do.

## Laravel integration
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.

To wire this up in your Laravel project, whether it's built in Laravel 4 or 5, you need to add the service provider.
## Integration for older versions of Laravel (5.5 -)

To wire this up in your Laravel project, you need to add the service provider.
Open `app.php`, and add a new item to the providers array.

```php
Expand Down
12 changes: 11 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,15 @@
"test": "phpunit",
"cs": "php-cs-fixer fix src/ --level=psr2"
},
"minimum-stability": "stable"
"minimum-stability": "stable",
"extra": {
"laravel": {
"providers": [
"Aloha\\Twilio\\Support\\Laravel\\ServiceProvider"
],
"aliases": {
"Twilio": "Aloha\\Twilio\\Support\\Laravel\\Facade"
}
}
}
}

0 comments on commit 8d06470

Please sign in to comment.