Skip to content

Commit 7b2a0b9

Browse files
committed
Comply with MaxMind
1 parent a060061 commit 7b2a0b9

File tree

2 files changed

+8
-18
lines changed

2 files changed

+8
-18
lines changed

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
22
"name": "torann/geoip",
3-
"description": "Support for multiple GeoIP services.",
3+
"description": "Support for multiple Geographical Location services.",
44
"keywords": [
55
"laravel",
66
"geoip",
7+
"geographical",
78
"location",
89
"geolocation",
9-
"MaxMind",
1010
"IP API",
1111
"infoDB"
1212
],

config/geoip.php

Lines changed: 6 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,11 @@
3232
|--------------------------------------------------------------------------
3333
|
3434
| Here you may specify the default storage driver that should be used
35-
| by the framework.
36-
|
37-
| Supported: "maxmind_database", "maxmind_api", "ipapi"
35+
| by the framework using the services listed below.
3836
|
3937
*/
4038

41-
'service' => 'ipapi',
39+
'service' => null,
4240

4341
/*
4442
|--------------------------------------------------------------------------
@@ -65,14 +63,6 @@
6563
'locales' => ['en'],
6664
],
6765

68-
'ipapi' => [
69-
'class' => \Torann\GeoIP\Services\IPApi::class,
70-
'secure' => true,
71-
'key' => env('IPAPI_KEY'),
72-
'continent_path' => storage_path('app/continents.json'),
73-
'lang' => 'en',
74-
],
75-
7666
'ipgeolocation' => [
7767
'class' => \Torann\GeoIP\Services\IPGeoLocation::class,
7868
'secure' => true,
@@ -82,14 +72,14 @@
8272
],
8373

8474
'ipdata' => [
85-
'class' => \Torann\GeoIP\Services\IPData::class,
86-
'key' => env('IPDATA_API_KEY'),
75+
'class' => \Torann\GeoIP\Services\IPData::class,
76+
'key' => env('IPDATA_API_KEY'),
8777
'secure' => true,
8878
],
8979

9080
'ipfinder' => [
91-
'class' => \Torann\GeoIP\Services\IPFinder::class,
92-
'key' => env('IPFINDER_API_KEY'),
81+
'class' => \Torann\GeoIP\Services\IPFinder::class,
82+
'key' => env('IPFINDER_API_KEY'),
9383
'secure' => true,
9484
'locales' => ['en'],
9585
],

0 commit comments

Comments
 (0)