File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff 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
35351 . Update your composer.json file as follows:
36+
3637 ``` json
3738 "toin0u/geocoder-laravel" : " ^1.0" ,
3839 ```
40+
39412 . Remove your `config/geocoder.php` configuration file. (If you need to customize it, follow the configuration instructions below.)
40423 . 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.)
45494 . 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')->`.
52575 . 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.
You can’t perform that action at this time.
0 commit comments