Thank you for this awesome package. For a commercial client I just switched to IP API Pro. However, it seems this driver doesn't return all fields. For example: the currency field is null by default when using
When I update IpApiPro.php driver to the following, the expected fields are returned:
<?php
namespace Stevebauman\Location\Drivers;
class IpApiPro extends IpApi
{
/**
* {@inheritDoc}
*/
public function url(string $ip): string
{
$key = config('location.ip_api.token');
return "https://pro.ip-api.com/json/$ip?key=$key&fields=status,message,country,countryCode,region,regionName,city,zip,lat,lon,timezone,currency,isp,org,as,query";
}
}
Thank you for this awesome package. For a commercial client I just switched to IP API Pro. However, it seems this driver doesn't return all fields. For example: the currency field is null by default when using
When I update
IpApiPro.php
driver to the following, the expected fields are returned:Do you welcome a PR for this?