File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -39,22 +39,22 @@ If you are upgrading from a pre-1.x version of this package, please keep the
3939 ```
4040
41412 . Remove your `config/geocoder.php` configuration file. (If you need to customize it, follow the configuration instructions below.)
42- 3 . Update the service provider entry in your `config/app.php` to read:
42+ 3 . Remove any Geocoder alias in the aliases section of your `config/app.php`. (This package auto-registers the aliases.)
43+ 4 . Update the service provider entry in your `config/app.php` to read:
4344
4445 ```php
4546 Geocoder\Laravel\Providers\GeocoderService::class,
4647 ```
4748
48- Also make sure you remove any Geocoder alias in the aliases section of this file. (This package auto-registers the aliases.)
49- 4 . If you are using the facade in your code, update the `use` statements to the
50- following:
49+ 5 . If you are using the facade in your code, you have two options:
50+ 1 . Replace the facades `Geocoder::` (and remove the corresponding `use` statements) with `app('geocoder')->`.
51+ 2 . Update the `use` statements to the following:
5152
5253 ```php
5354 use use Geocoder\Laravel\Facades\Geocoder;
5455 ```
55-
56- Alternatively you can replace the facades `Geocoder::` (and remove the corresponding `use` statements) with `app('geocoder')->`.
57- 5 . Update your query statements to use `->get()` (to retrieve a collection of
56+
57+ 6 . Update your query statements to use `->get()` (to retrieve a collection of
5858 GeoCoder objects) or `->all()` (to retrieve an array of arrays), then iterate
5959 to process each result.
6060
You can’t perform that action at this time.
0 commit comments