You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+3-7Lines changed: 3 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -51,12 +51,14 @@ $ php artisan vendor:publish
51
51
52
52
A configuration file will be publish to `config/geoip.php`
53
53
54
-
Update max mind cities database
54
+
Update max mind cities database:
55
55
56
56
~~~
57
57
$ php artisan geoip:update
58
58
~~~
59
59
60
+
**Database Service**: To use the database version of [MaxMind](http://www.maxmind.com) services download the `GeoLite2-City.mmdb` from [http://dev.maxmind.com/geoip/geoip2/geolite2/](http://dev.maxmind.com/geoip/geoip2/geolite2/) and extract it to `storage/app/geoip.mmdb`. And that's it.
61
+
60
62
## Usage
61
63
62
64
Get the location data for a website visitor:
@@ -95,12 +97,6 @@ array (
95
97
96
98
In the case that a location is not found the fallback location will be returned with the `default` parameter set to `true`. To set your own default change it in the configurations `config/geoip.php`
97
99
98
-
## Services
99
-
100
-
### [MaxMind](http://www.maxmind.com)
101
-
102
-
-**Database Service**: To use the database version of MaxMind services download the `GeoLite2-City.mmdb` from [http://dev.maxmind.com/geoip/geoip2/geolite2/](http://dev.maxmind.com/geoip/geoip2/geolite2/) and extract it to `database/maxmind/`. And that's it.
0 commit comments