From fcf05d1f7cace2d29339b143d33f540cf8c52299 Mon Sep 17 00:00:00 2001 From: z38 Date: Thu, 26 Apr 2018 21:09:28 +0200 Subject: [PATCH 1/2] Fix auto discovery for Laravel 5.5 --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 4339251f..06508c0b 100644 --- a/composer.json +++ b/composer.json @@ -34,7 +34,7 @@ "extra": { "laravel": { "providers": [ - "Tmdb\\Laravel\\TmdbServiceProviderLaravel5" + "Tmdb\\Laravel\\TmdbServiceProvider" ], "aliases": { "Tmdb": "Tmdb\\Laravel\\Facades\\Tmdb" From 1671c0c461837985daeaeb83b5de7068efc7ffad Mon Sep 17 00:00:00 2001 From: z38 Date: Thu, 26 Apr 2018 21:13:27 +0200 Subject: [PATCH 2/2] =?UTF-8?q?Document=20optional=20steps=20for=20Laravel?= =?UTF-8?q?=20=E2=89=A55.5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 7e34e9ca..38c1d767 100644 --- a/README.md +++ b/README.md @@ -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( @@ -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 {