PHP code example of acidreign / laravel-geoip2
1. Go to this page and download the library: Download acidreign/laravel-geoip2 library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
acidreign / laravel-geoip2 example snippets
php
'providers' => array(
Acidreign\LaravelGeoIP2\GeoIP2ServiceProvider::class,
)
php
'aliases' => array(
'GeoIP2' => Acidreign\LaravelGeoIP2\GeoIP2Facade::class,
)
php
$ php artisan vendor:publish --provider="Acidreign\LaravelGeoIP2\GeoIP2ServiceProvider"