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

geoip:update is not downloading the database

princeofnaxos opened this issue · comments

With service 'maxmind_database', the geoip:update command doesn't download the database. Downloading works when I apply the link in my browser.

How can I debug this process?

I have the same issue. Did you fix it?

commented

For anyone looking, what I did was:

  1. go to the Maxmind website, sign up (free), and generate a key
  2. in my .env file add the MAXMIND_USER_ID and MAXMIND_LICENSE_KEY with the key and userid from above
  3. install the geoip reader php library composer require geoip2/geoip2:~2.0

Then I ran the update command php artisan geoip:update and the maxmind db was downloaded to my storage folder (or wherever it's set in the config/geoip.php file under maxmind_database->database_path