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