Skip to content

Commit

Permalink
Merge pull request #161 from highstrike/patch-2
Browse files Browse the repository at this point in the history
Placing the country name correctly in ipdata.co
  • Loading branch information
Torann committed Feb 12, 2020
2 parents 2c406bd + 02587e4 commit 280b838
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions 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 All @@ -65,4 +65,4 @@ public function locate($ip)
'currency' => Arr::get($json, 'currency.code'),
]);
}
}
}

0 comments on commit 280b838

Please sign in to comment.