2017 © Pedro Peláez

laravel-library laravel-portugal-cities

Laravel Portugal Cities is a bundle for Laravel.



Laravel Portugal Cities is a bundle for Laravel.

  • Tuesday, March 28, 2017
  • by renshipt
  • Repository
  • 0 Watchers
  • 0 Stars
  • 12 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown


Laravel 5 Portugal Cities

Laravel Portufal Cities is a bundle for Laravel., (*1)

Please note that the dev-master version is for Laravel 5 only, (*2)


Run composer require renshipt/laravel-portugal-cities dev-master in your Laravel root directory to install the latest version., (*3)

Or add renshipt/laravel-portugal-cities to composer.json., (*4)

"renshipt/laravel-portugal-cities": "dev-master"

Run composer update to pull down the latest version of City List., (*5)

Edit app/config/app.php and add the provider and filter, (*6)

'providers' => [

Now add the alias., (*7)

'aliases' => [
    'Cities' => Renshipt\Cities\CitiesFacade::class,


You can start by publishing the configuration. This is an optional step, it contains the table name and does not need to be altered. If the default name cities suits you, leave it. Otherwise run the following command, (*8)

$ php artisan vendor:publish

Next generate the migration file:, (*9)

$ php artisan cities:migration

It will generate the <timestamp>_setup_cities_table.php migration and the CitiesSeeder.php seeder. To make sure the data is seeded insert the following code in the seeds/DatabaseSeeder.php, (*10)

//Seed the cities
$this->command->info('Seeded the cities!');

You may now run it with the artisan migrate command:, (*11)

$ php artisan migrate --seed

After running this command the filled cities table will be available, (*12)

The Versions

28/03 2017


9999999-dev https://github.com/renshipt/laravel-portugal-cities

Laravel Portugal Cities is a bundle for Laravel.

  Sources   Download


The Requires

  • php >=5.3.0


by Avatar renshipt

laravel cities portugal