Skip to content
This repository was archived by the owner on Nov 27, 2019. It is now read-only.

Commit dae518c

Browse files
Support for Laravel auto-discover function
1 parent 52849cd commit dae518c

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,15 @@ For Laravel == 5.0.*
1414
'Gmopx\LaravelOWM\LaravelOWMServiceProvider'
1515
```
1616

17-
For Laravel >= 5.1.*
17+
For Laravel <= 5.4.*
1818

1919
```
2020
Gmopx\LaravelOWM\LaravelOWMServiceProvider::class,
2121
2222
```
2323

24+
For Laravel >= 5.5.* will use the auto-discovery function.
25+
2426
#### 3. Publish the config file (config/laravel-owm.php)
2527

2628
`php artisan vendor:publish --provider="Gmopx\LaravelOWM\LaravelOWMServiceProvider"`

composer.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@
66
"php": ">=5.4.0",
77
"cmfcmf/openweathermap-php-api": "^2.1"
88
},
9+
910
"license": "MIT",
11+
1012
"authors": [
1113
{
1214
"name": "Guillermo Palafox",
@@ -19,5 +21,13 @@
1921
"psr-4": {
2022
"Gmopx\\LaravelOWM\\": "src/"
2123
}
24+
},
25+
26+
"extra": {
27+
"laravel": {
28+
"providers": [
29+
"Gmopx\\LaravelOWM\\LaravelOWMServiceProvider"
30+
]
31+
}
2232
}
2333
}

0 commit comments

Comments
 (0)