PHP code example of abdelrahman2018 / world-countries-cities2

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

    

abdelrahman2018 / world-countries-cities2 example snippets


public function run()
{
    Model::unguard();

    $this->call('Alakkad\WorldCountriesCities\CitiesSeeder');
    $this->call('Alakkad\WorldCountriesCities\CountriesSeeder');
}

php artisan vendor:publish

php artisan migrate

php artisan db:seed