diff --git a/src/Services/IPData.php b/src/Services/IPData.php index a84d09e..1376c94 100644 --- a/src/Services/IPData.php +++ b/src/Services/IPData.php @@ -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'], @@ -65,4 +65,4 @@ public function locate($ip) 'currency' => Arr::get($json, 'currency.code'), ]); } -} \ No newline at end of file +}