From 02587e482a7c9f91f9d1bf1ac4fbdfc3dfbac781 Mon Sep 17 00:00:00 2001 From: Flavius Date: Thu, 28 Nov 2019 14:45:52 +0200 Subject: [PATCH] Placing the country name correctly in ipdata.co --- src/Services/IPData.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 +}