Skip to content
This repository has been archived by the owner on Mar 11, 2022. It is now read-only.

Commit

Permalink
Merge pull request #28 from trizz/package-discovery
Browse files Browse the repository at this point in the history
Package discovery
  • Loading branch information
thomaswelton authored Sep 19, 2017
2 parents 487ccea + 5b84729 commit 1d4ef2f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ Update your `composer.json` file to include this package as a dependency
"thomaswelton/laravel-gravatar": "~1.0"
```

> This package supports the [package discovery](https://laravel.com/docs/5.5/packages#package-discovery) functionality provided in Laravel 5.5, so registering the classes as described below is no longer necessary if you use Laravel 5.5.
Register the Gravatar service provider by adding it to the providers array in the `config/app.php` file.
```php
Thomaswelton\LaravelGravatar\LaravelGravatarServiceProvider::class
Expand Down
10 changes: 10 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,15 @@
"Thomaswelton\\Tests\\LaravelGravatar\\":"tests/"
}
},
"extra": {
"laravel": {
"providers": [
"Thomaswelton\\LaravelGravatar\\LaravelGravatarServiceProvider"
],
"aliases": {
"Gravatar": "Thomaswelton\\LaravelGravatar\\Facades\\Gravatar"
}
}
},
"minimum-stability":"stable"
}

0 comments on commit 1d4ef2f

Please sign in to comment.