PHP code example of pixxet / laravel-geoip-world-cities

1. Go to this page and download the library: Download pixxet/laravel-geoip-world-cities 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/ */

    

pixxet / laravel-geoip-world-cities example snippets


    'providers' => [
        Pixxet\LaravelGeoIPWorldCities\LaravelGeoIPWorldCitiesServiceProvider::class,
    ]

    'aliases' => [
        'Cities' => Pixxet\LaravelGeoIPWorldCities\Facade::class,
    ]

    'mysql' => [
        'options'   => [PDO::MYSQL_ATTR_LOCAL_INFILE => true],
    ],

    // Seeding the cities
    $this->call(CitiesTableSeeder::class);
    $this->command->info('Seeded the cities table ...'); 

    \Pixxet\LaravelGeoIPWorldCities\City::whereCity('Khartoum')->first();

    [ReflectionException]                   
    Class CitiesTableSeeder does not exist 

    composer dump-autoload