Skip to content

Commit a1ccce6

Browse files
authored
Update README.md
1 parent af5f193 commit a1ccce6

File tree

1 file changed

+16
-11
lines changed

1 file changed

+16
-11
lines changed

README.md

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -34,27 +34,32 @@ If you are upgrading from a pre-1.x version of this package, please keep the
3434
following things in mind:
3535

3636
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+
```
4041

4142
2. Remove your `config/geocoder.php` configuration file. (If you need to
4243
customize it, follow the configuration instructions below.)
4344
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+
4750
Also make sure you remove any Geocoder alias in the aliases section of this
4851
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
5053
following:
51-
```php
52-
use use Geocoder\Laravel\Facades\Geocoder;
53-
```
5454

55+
```php
56+
use use Geocoder\Laravel\Facades\Geocoder;
57+
```
58+
5559
Alternatively you can replace the facades `Geocoder::` (and remove the corresponding `use`
5660
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
5863
GeoCoder objects) or `->all()` (to retrieve an array of arrays), then iterate
5964
to process each result.
6065

0 commit comments

Comments
 (0)