File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -39,22 +39,22 @@ If you are upgrading from a pre-1.x version of this package, please keep the
39
39
```
40
40
41
41
2 . Remove your `config/geocoder.php` configuration file. (If you need to customize it, follow the configuration instructions below.)
42
- 3 . Update the service provider entry in your `config/app.php` to read:
42
+ 3 . Remove any Geocoder alias in the aliases section of your `config/app.php`. (This package auto-registers the aliases.)
43
+ 4 . Update the service provider entry in your `config/app.php` to read:
43
44
44
45
```php
45
46
Geocoder\Laravel\Providers\GeocoderService::class,
46
47
```
47
48
48
- Also make sure you remove any Geocoder alias in the aliases section of this file. (This package auto-registers the aliases.)
49
- 4 . If you are using the facade in your code, update the `use` statements to the
50
- following:
49
+ 5 . If you are using the facade in your code, you have two options:
50
+ 1 . Replace the facades `Geocoder::` (and remove the corresponding `use` statements) with `app('geocoder')->`.
51
+ 2 . Update the `use` statements to the following:
51
52
52
53
```php
53
54
use use Geocoder\Laravel\Facades\Geocoder;
54
55
```
55
-
56
- Alternatively you can replace the facades `Geocoder::` (and remove the corresponding `use` statements) with `app('geocoder')->`.
57
- 5 . Update your query statements to use `->get()` (to retrieve a collection of
56
+
57
+ 6 . Update your query statements to use `->get()` (to retrieve a collection of
58
58
GeoCoder objects) or `->all()` (to retrieve an array of arrays), then iterate
59
59
to process each result.
60
60
You can’t perform that action at this time.
0 commit comments