Skip to content
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
"require": {
"php": "^7.0",
"illuminate/support": "~5.0",
"illuminate/console": "~5.0"
"illuminate/console": "~5.0",
"vlucas/phpdotenv":"3.3"
},
"suggest": {
"geoip2/geoip2": "Required to use the MaxMind database or web service with GeoIP (~2.1).",
Expand Down
2 changes: 1 addition & 1 deletion src/Services/IPData.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public function locate($ip)
return $this->hydrate([
'ip' => $ip,
'iso_code' => $json['country_code'],
'country' => $json['continent_name'],
'country' => $json['country_name'],
'city' => $json['city'],
'state' => $json['region_code'],
'state_name' => $json['region'],
Expand Down