Torann / laravel-geoip

Determine the geographical location of website visitors based on their IP addresses.
http://lyften.com/projects/laravel-geoip
BSD 2-Clause "Simplified" License
2.07k stars 372 forks source link

Support for both Country and City database for MAXMIND GeoIP2 #221

Open NilsBohr14 opened 1 year ago

NilsBohr14 commented 1 year ago

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
}