PHP code example of brocard / geolocation
1. Go to this page and download the library: Download brocard/geolocation 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/ */
brocard / geolocation example snippets
'providers' => [
// Laravel Framework Service Providers...
//...
// Package Service Providers
BrocardJr\Geo\GeoServiceProvider::class,
// ...
// Application Service Providers
// ...
],
php artisan vendor:publish --provider="BrocardJr\Geo\GeoServiceProvider"
php artisan vendor:publish --provider="BrocardJr\Geo\GeoServiceProvider" --tag=config --force
php artisan geo:install