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.1k stars 373 forks source link

geoip:update is not downloading the database #176

Open princeofnaxos opened 4 years ago

princeofnaxos commented 4 years ago

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?

bapfnet commented 4 years ago

I have the same issue. Did you fix it?

dannoblammo commented 3 years ago

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