stevebauman / location

Detect a users location by their IP Address.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

false on locallhost

felixkaleke opened this issue · comments

Am getting false on localhost , what might be the issue here

Me too. Does it just happen on localhost, or will it happen on production too?

Make sure you have testing enabled if you're working locally, otherwise all location drivers will return no data, because your requests will be hitting your web-server from your localhost 127.0.0.1 address:

'testing' => [
'enabled' => env('LOCATION_TESTING', true),
'ip' => '66.102.0.0',
],