Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix auto discovery for Laravel ≥5.5 #55

Merged
merged 2 commits into from
May 2, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ composer require php-tmdb/laravel

## Configuration

Add to your `app/config/app.php` (Laravel 4) or `config/app.php` (Laravel 5) the service provider:
Add to your `app/config/app.php` (Laravel 4) or `config/app.php` (Laravel <5.5) the service provider:

```php
'providers' => array(
Expand Down Expand Up @@ -79,7 +79,7 @@ The example below shows how you can use the `Tmdb` facade.
If you don't want to keep adding the `use Tmdb\Laravel\Facades\Tmdb;` statement in your files, then you can also add the facade as an alias in `config/app.php` file.

```php
use Tmdb\Laravel\Facades\Tmdb;
use Tmdb\Laravel\Facades\Tmdb; // optional for Laravel ≥5.5

class MoviesController {

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"extra": {
"laravel": {
"providers": [
"Tmdb\\Laravel\\TmdbServiceProviderLaravel5"
"Tmdb\\Laravel\\TmdbServiceProvider"
],
"aliases": {
"Tmdb": "Tmdb\\Laravel\\Facades\\Tmdb"
Expand Down