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

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

    

moharrum / laravel-geoip-world-cities example snippets


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

    'aliases' => [
        'Cities' => Moharrum\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 ...');

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

    [ReflectionException]                   
    Class CitiesTableSeeder does not exist

    composer dump-autoload