PHP code example of bigperson / laravel-vk-geo

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

    

bigperson / laravel-vk-geo example snippets


...
'providers' => [
    ...
     Bigperson\VkGeo\VkGeoServiceProvider::class,
],
...

namespace App\Http\Controllers;

use Bigperson\VkGeo\Models\City;

class Controller
{
    protected function show($name){

        $city = City::where('title', $name)->first();

    }
}

php artisan vendor:publish --provider=Bigperson\VkGeo\VkGeoServiceProvider

php artisan migrate