You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+19-13Lines changed: 19 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -22,16 +22,18 @@ This package allows you to use [**Geocoder**](http://geocoder-php.org/Geocoder/)
22
22
23
23
## Installation
24
24
1. Install the package via composer:
25
-
```sh
26
-
composer require toin0u/geocoder-laravel
27
-
```
28
-
29
-
2.**If you are running Laravel 5.5, skip this step.** Find the `providers` array key in `config/app.php` and register the **Geocoder Service Provider**:
Anytime you upgrade this package, please remember to clear your cache, to prevent incompatible cached responses when breaking changes are introduced (this should hopefully only be necessary in major versions):
@@ -60,9 +62,13 @@ Also, `getProviders()` now returns a Laravel Collection instead of an array.
60
62
needed. Simply iterate over your results as you would any other Laravel
61
63
collection.
62
64
63
-
**Deprecated:** the `all()` method on the geocoder is being deprecated in favor
64
-
of using `get()`, which will return a Laravel Collection. You can then run
65
-
`all()` on that. This method will be removed in version 3.0.0.
65
+
**Deprecated:**
66
+
- the `all()` method on the geocoder is being deprecated in favor of using
67
+
`get()`, which will return a Laravel Collection. You can then run `all()`
68
+
on that. This method will be removed in version 5.0.0.
69
+
- the `getProvider()` method on the geocoder is being deprecated in favor of using
70
+
`getProviders()`, which will return a Laravel Collection. You can then run `first()`
71
+
on that to get the same result. This method will be removed in version 5.0.0.
66
72
67
73
**Added:** this version introduces a new way to create more complex queries:
0 commit comments