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

Commit2cebf12

Browse files
committed
Update config to read locale from .env, add descriptions
1 parentbb92704 commit2cebf12

File tree

1 file changed

+48
-7
lines changed

1 file changed

+48
-7
lines changed

‎config/geocoder.php‎

Lines changed: 48 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,67 @@
11
<?php
22

3-
/**
4-
* This file is part of the GeocoderLaravel library.
5-
* For the full copyright and license information, please view the LICENSE
6-
* file that was distributed with this source code.
7-
*/
8-
93
useGeocoder\Provider\Chain\Chain;
104
useGeocoder\Provider\GeoPlugin\GeoPlugin;
115
useGeocoder\Provider\GoogleMaps\GoogleMaps;
126
useHttp\Client\Curl\Client;
137

148
return [
9+
10+
/*
11+
|--------------------------------------------------------------------------
12+
| Cache Duration
13+
|--------------------------------------------------------------------------
14+
|
15+
| Specify the cache duration in seconds. The default approximates a forever
16+
| cache, but there are certain issues with Laravel's forever caching
17+
| methods that prevent us from using them in this project.
18+
|
19+
| Default: 9999999 (integer)
20+
|
21+
*/
1522
'cache-duration' =>9999999,
23+
24+
/*
25+
|--------------------------------------------------------------------------
26+
| Providers
27+
|--------------------------------------------------------------------------
28+
|
29+
| Here you may specify any number of providers that should be used to
30+
| perform geocaching operations. The `chain` provider is special,
31+
| in that it can contain multiple providers that will be run in
32+
| the sequence listed, should the previous provider fail. By
33+
| default the first provider listed will be used, but you
34+
| can explicitly call subsequently listed providers by
35+
| alias: `app('geocoder')->using('google_maps')`.
36+
|
37+
| Please consult the official Geocoder documentation for more info.
38+
| https://github.com/geocoder-php/Geocoder#providers
39+
|
40+
*/
1641
'providers' => [
1742
Chain::class => [
1843
GoogleMaps::class => [
19-
'en-US',
44+
env('GOOGLE_MAPS_LOCALE','en-US'),
2045
env('GOOGLE_MAPS_API_KEY'),
2146
],
2247
GeoPlugin::class => [],
2348
],
2449
],
50+
51+
/*
52+
|--------------------------------------------------------------------------
53+
| Adapter
54+
|--------------------------------------------------------------------------
55+
|
56+
| You can specify which PSR-7-compliant HTTP adapter you would like to use.
57+
| There are multiple options at your disposal: CURL, Guzzle, and others.
58+
|
59+
| Please consult the official Geocoder documentation for more info.
60+
| https://github.com/geocoder-php/Geocoder#usage
61+
|
62+
| Default: Client::class (FQCN for CURL adapter)
63+
|
64+
*/
2565
'adapter' => Client::class,
66+
2667
];

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp