From 550a096a6e6daa51291efc4d66d6b6bddfb1c1be Mon Sep 17 00:00:00 2001 From: Shalvah A Date: Wed, 3 Jan 2018 19:05:20 +0100 Subject: [PATCH 1/2] Add support for Laravel 5.5 package auto-discovery --- composer.json | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/composer.json b/composer.json index 7d53dc5..001c101 100644 --- a/composer.json +++ b/composer.json @@ -42,6 +42,11 @@ "extra": { "branch-alias": { "dev-master": "1.0-dev" + }, + "laravel": { + "providers": [ + "Unicodeveloper\\DumbPassword\\DumbPasswordServiceProvider" + ] } } } From a28360841d182d6097be7c3d12160ebe03b19674 Mon Sep 17 00:00:00 2001 From: Shalvah A Date: Wed, 3 Jan 2018 19:10:53 +0100 Subject: [PATCH 2/2] Update README to reflect L5.5 auto-discovery --- README.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 7bd8724..44d836d 100644 --- a/README.md +++ b/README.md @@ -28,10 +28,12 @@ To get the latest version of Laravel Password, simply add the following line to You'll then need to run `composer install` or `composer update` to download it and have the autoloader updated. -Once Laravel Password is installed, you need to register the service provider. Open up `config/app.php` and add the following to the `providers` key. - -* `Unicodeveloper\DumbPassword\DumbPasswordServiceProvider::class` +- If you're on Laravel 5.5 or above, that's all you need to do! Check out the usage examples below. +- If you're on Laravel < 5.5, you'll need to register the service provider. Open up `config/app.php` and add the following to the `providers` array: +```php +Unicodeveloper\DumbPassword\DumbPasswordServiceProvider::class +``` ## Usage