Torann / laravel-geoip

Determine the geographical location of website visitors based on their IP addresses.

Home Page:http://lyften.com/projects/laravel-geoip

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support for both Country and City database for MAXMIND GeoIP2

NilsBohr14 opened this issue · comments

Right now there is only support for city Database for MAXMIND GeoIP2. A config for choosing any of those option would be much appreciated and versatile. This exception occurred when a country database is used.

BadMethodCallException {#1783 ▼
  #message: "The city method cannot be used to open a GeoIP2-Country database"
  #code: 0
  #file: "/var/www/vendor/geoip2/geoip2/src/Database/Reader.php"
  #line: 254
}