Skip to content

Commit c2e532c

Browse files
author
Prosper Otemuyiwa
authored
Merge pull request #18 from shalvah/master
Add support for Laravel 5.5 package auto-discovery
2 parents c62279f + a283608 commit c2e532c

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

README.md

+5-3
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,12 @@ To get the latest version of Laravel Password, simply add the following line to
2828

2929
You'll then need to run `composer install` or `composer update` to download it and have the autoloader updated.
3030

31-
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.
32-
33-
* `Unicodeveloper\DumbPassword\DumbPasswordServiceProvider::class`
31+
- If you're on Laravel 5.5 or above, that's all you need to do! Check out the usage examples below.
32+
- 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:
3433

34+
```php
35+
Unicodeveloper\DumbPassword\DumbPasswordServiceProvider::class
36+
```
3537

3638
## Usage
3739

composer.json

+5
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,11 @@
4242
"extra": {
4343
"branch-alias": {
4444
"dev-master": "1.0-dev"
45+
},
46+
"laravel": {
47+
"providers": [
48+
"Unicodeveloper\\DumbPassword\\DumbPasswordServiceProvider"
49+
]
4550
}
4651
}
4752
}

0 commit comments

Comments
 (0)