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