I found an immensely complete package for geo-ip lookups, as well as geo-coding and other geo-referencial processes: https://github.com/geocoder-php/GeocoderLaravel
Aug 16, 2014
7
Level 10
Using GeoIp for fetching location
How can i fetch geolocation for user who submit form on website? For example, when someone submit form, i want to display best moods from that specific country?
I found this package https://github.com/torann/laravel-4-geoip and put little snippet
$location = GeoIP::getLocation( );
dd($location);
but i always recieve US even tough i'm located in Croatia. I put my own IP then i recieve this error
The file "/home/vagrant/howdoyou/app/database/maxmind/GeoLite2-City.mmdb" does not exist or is not readable.
How can i use this package? Do i have to store IP address first in db?
Level 1
Problem Solved by revising the steps from another source
Please or to participate in this conversation.