Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit224c39d

Browse files
authored
Update README.md
1 parent4e5b1d3 commit224c39d

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

‎README.md‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -39,22 +39,22 @@ If you are upgrading from a pre-1.x version of this package, please keep the
3939
```
4040

4141
2. 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 sureyouremove any Geocoder alias inthe aliases section of this file. (This package auto-registers the aliases.)
49-
4. If you are usingthefacade in your code, updatethe `use` statements to the
50-
following:
49+
5. Ifyouare using the facade inyour code, you have two options:
50+
1. Replacethefacades `Geocoder::` (and removethecorresponding`use` statements) with `app('geocoder')->`.
51+
2. Update the `use` statements to thefollowing:
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

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp