1
- Geocoder for Lavarel 4
1
+ Geocoder for Lavarel 5
2
2
======================
3
3
4
4
This package allows you to use [ ** Geocoder** ] ( http://geocoder-php.org/Geocoder/ )
5
- in [ ** Laravel 4 ** ] ( http://laravel.com/ ) .
5
+ in [ ** Laravel 5 ** ] ( http://laravel.com/ ) .
6
6
7
7
[ ![ Latest StableVersion] ( https://poser.pugx.org/toin0u/geocoder-laravel/v/stable.png )] ( https://packagist.org/packages/toin0u/geocoder-laravel )
8
8
[ ![ Total Downloads] ( https://poser.pugx.org/toin0u/geocoder-laravel/downloads.png )] ( https://packagist.org/packages/toin0u/geocoder-laravel )
@@ -31,6 +31,11 @@ Edit `composer.json` and add:
31
31
page to choose a stable version to use, avoid the ` @stable ` meta constraint.
32
32
33
33
And install dependencies:
34
+ ``` bash
35
+ $ composer update
36
+ ```
37
+
38
+ If you do not have [ ** Composer** ] ( https://getcomposer.org ) installed, run these two commands:
34
39
35
40
``` bash
36
41
$ curl -sS https://getcomposer.org/installer | php
@@ -41,7 +46,7 @@ $ php composer.phar install
41
46
Usage
42
47
-----
43
48
44
- Find the ` providers ` key in ` app/ config/app.php` and register the ** Geocoder Service Provider** .
49
+ Find the ` providers ` array key in ` config/app.php ` and register the ** Geocoder Service Provider** .
45
50
46
51
``` php
47
52
'providers' => array(
@@ -51,13 +56,13 @@ Find the `providers` key in `app/config/app.php` and register the **Geocoder Ser
51
56
)
52
57
```
53
58
54
- Find the ` aliases ` key in ` app/ config/app.php` and register the ** Geocoder Facade** .
59
+ Find the ` aliases ` array key in ` config/app.php ` and register the ** Geocoder Facade** .
55
60
56
61
``` php
57
62
'aliases' => array(
58
63
// ...
59
64
60
- 'Geocoder' => 'Toin0u\Geocoder\GeocoderFacade ',
65
+ 'Geocoder' => 'Toin0u\Geocoder\Facade\Geocoder ',
61
66
)
62
67
```
63
68
@@ -78,7 +83,7 @@ The service provider creates the following services:
78
83
79
84
By default, the ` geocoder.chain ` service contains ` GoogleMapsProvider ` and ` FreeGeoIpProvider ` .
80
85
The ` geocoder.adapter ` service uses the cURL adapter. Override these services to use the
81
- adapter/providers you want by editing ` app/ config/packages/toin0u/ geocoder-laravel/config .php` :
86
+ adapter/providers you want by editing ` config/geocoder.php ` :
82
87
83
88
``` php
84
89
return array(
0 commit comments