File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -33,20 +33,20 @@ If you are upgrading from a pre-1.x version of this package, please keep the
33
33
following things in mind:
34
34
35
35
1 . Update your composer.json file as follows:
36
- ``` json
37
- "toin0u/geocoder-laravel" : " ^1.0" ,
38
- ```
36
+ ``` json
37
+ "toin0u/geocoder-laravel" : " ^1.0" ,
38
+ ```
39
39
2 . Remove your `config/geocoder.php` configuration file. (If you need to customize it, follow the configuration instructions below.)
40
40
3 . Update the service provider entry in your `config/app.php` to read:
41
- ``` php
42
- Geocoder\Laravel\Providers\GeocoderService::class,
43
- ```
41
+ ```php
42
+ Geocoder\Laravel\Providers\GeocoderService::class,
43
+ ```
44
44
Also make sure you remove any Geocoder alias in the aliases section of this file. (This package auto-registers the aliases.)
45
45
4 . If you are using the facade in your code, update the `use` statements to the
46
46
following:
47
- ``` php
48
- use use Geocoder\Laravel\Facades\Geocoder;
49
- ```
47
+ ```php
48
+ use use Geocoder\Laravel\Facades\Geocoder;
49
+ ```
50
50
Alternatively you can replace the facades `Geocoder::` (and remove the corresponding `use`
51
51
statements) with `app('geocoder')->`.
52
52
5 . Update your query statements to use `->get()` (to retrieve a collection of
You can’t perform that action at this time.
0 commit comments