PHP code example of nbz4live / laravel-geoip2

1. Go to this page and download the library: Download nbz4live/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/ */

    

nbz4live / laravel-geoip2 example snippets

 php
Nbz4live\LaravelGeoIP2\ServiceProvider::class,
 php
'GeoIP2' => Nbz4live\LaravelGeoIP2\Facades\GeoIP2::class,
 php
$ php artisan vendor:publish --provider="Nbz4live\LaravelGeoIP2\ServiceProvider"
 php
$ php artisan geoip:update