Skip to content

Commit 4e5b1d3

Browse files
authored
Update README.md
1 parent c9872b5 commit 4e5b1d3

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

README.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,22 +33,27 @@ If you are upgrading from a pre-1.x version of this package, please keep the
3333
following things in mind:
3434

3535
1. Update your composer.json file as follows:
36+
3637
```json
3738
"toin0u/geocoder-laravel": "^1.0",
3839
```
40+
3941
2. Remove your `config/geocoder.php` configuration file. (If you need to customize it, follow the configuration instructions below.)
4042
3. Update the service provider entry in your `config/app.php` to read:
43+
4144
```php
4245
Geocoder\Laravel\Providers\GeocoderService::class,
4346
```
47+
4448
Also make sure you remove any Geocoder alias in the aliases section of this file. (This package auto-registers the aliases.)
4549
4. If you are using the facade in your code, update the `use` statements to the
4650
following:
51+
4752
```php
4853
use use Geocoder\Laravel\Facades\Geocoder;
4954
```
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')->`.
5257
5. Update your query statements to use `->get()` (to retrieve a collection of
5358
GeoCoder objects) or `->all()` (to retrieve an array of arrays), then iterate
5459
to process each result.

0 commit comments

Comments
 (0)