laravel-geoip icon indicating copy to clipboard operation
laravel-geoip copied to clipboard

geoip:update is not downloading the database

Open princeofnaxos opened this issue 5 years ago • 2 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?

princeofnaxos avatar Mar 04 '20 15:03 princeofnaxos

I have the same issue. Did you fix it?

bapfnet avatar May 28 '20 17:05 bapfnet

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

dannoblammo avatar Mar 03 '21 23:03 dannoblammo