Skip to content

Commit 8ce655c

Browse files
authored
Update README.md
1 parent a1ccce6 commit 8ce655c

File tree

1 file changed

+22
-32
lines changed

1 file changed

+22
-32
lines changed

README.md

Lines changed: 22 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -16,49 +16,39 @@ This package allows you to use [**Geocoder**](http://geocoder-php.org/Geocoder/)
1616

1717
## Installation
1818
1. Install the package via composer:
19-
```sh
20-
composer require toin0u/geocoder-laravel
21-
```
22-
_Once 1.0.0 is stable, we will update this command to reflect that. In the interest of getting it out and into your hands, a temporary RC build is best._
23-
24-
2. Find the `providers` array key in `config/app.php` and register the **Geocoder
25-
Service Provider**:
26-
```php
27-
// 'providers' => [
28-
Geocoder\Laravel\Providers\GeocoderService::class,
29-
// ];
30-
```
19+
```sh
20+
composer require toin0u/geocoder-laravel
21+
```
22+
_Once 1.0.0 is stable, we will update this command to reflect that. In the interest of getting it out and into your hands, a temporary RC build is best._
23+
24+
2. Find the `providers` array key in `config/app.php` and register the **Geocoder Service Provider**:
25+
```php
26+
// 'providers' => [
27+
Geocoder\Laravel\Providers\GeocoderService::class,
28+
// ];
29+
```
3130

3231
## Upgrading
3332
If you are upgrading from a pre-1.x version of this package, please keep the
3433
following things in mind:
3534

3635
1. Update your composer.json file as follows:
37-
38-
```json
39-
"toin0u/geocoder-laravel": "^1.0",
40-
```
41-
42-
2. Remove your `config/geocoder.php` configuration file. (If you need to
43-
customize it, follow the configuration instructions below.)
36+
```json
37+
"toin0u/geocoder-laravel": "^1.0",
38+
```
39+
2. Remove your `config/geocoder.php` configuration file. (If you need to customize it, follow the configuration instructions below.)
4440
3. Update the service provider entry in your `config/app.php` to read:
45-
46-
```php
47-
Geocoder\Laravel\Providers\GeocoderService::class,
48-
```
49-
50-
Also make sure you remove any Geocoder alias in the aliases section of this
51-
file. (This package auto-registers the aliases.)
41+
```php
42+
Geocoder\Laravel\Providers\GeocoderService::class,
43+
```
44+
Also make sure you remove any Geocoder alias in the aliases section of this file. (This package auto-registers the aliases.)
5245
4. If you are using the facade in your code, update the `use` statements to the
5346
following:
54-
55-
```php
56-
use use Geocoder\Laravel\Facades\Geocoder;
57-
```
58-
47+
```php
48+
use use Geocoder\Laravel\Facades\Geocoder;
49+
```
5950
Alternatively you can replace the facades `Geocoder::` (and remove the corresponding `use`
6051
statements) with `app('geocoder')->`.
61-
6252
5. Update your query statements to use `->get()` (to retrieve a collection of
6353
GeoCoder objects) or `->all()` (to retrieve an array of arrays), then iterate
6454
to process each result.

0 commit comments

Comments
 (0)