2017 © Pedro Peláez
 

laravel-library freguesias

Freguesias is a bundle for Laravel with all Portuguese administrative regions.

image

luismarcelino/freguesias

Freguesias is a bundle for Laravel with all Portuguese administrative regions.

  • Tuesday, August 18, 2015
  • by luismarcelino
  • Repository
  • 1 Watchers
  • 0 Stars
  • 8 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Freguesias

Freguesias is a Laravel 5 package that provides all administrative regions in Portugal: distritos, concelhos and freguesias., (*1)

Instalation

Add luismarcelino/freguesias to composer.json., (*2)

"luismarcelino/freguesias": "dev-master"

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

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

'providers' => [
    Luismarcelino\Freguesias\FreguesiasServiceProvider::class,,
]

Now add the alias., (*5)

'aliases' => [
    'Freguesias' => Luismarcelino\Freguesias\FreguesiasFacade::class,
]

Publishing

Optionaly you can publishing the configuration if you want to change the default table name freguesias:, (*6)

$ php artisan vendor:publish

To generate the migration file use:, (*7)

$ php artisan freguesias:migration

This will generate the <timestamp>_setup_freguesias_table.php migration and the FreguesiasSeeder.php seeder. To run the migration, run as usual:, (*8)

php artisan migrate:refresh

To run just this seeder user the artisan command:, (*9)

php artisan db:seed --class=FreguesiasSeeder

The Versions

18/08 2015

dev-master

9999999-dev https://github.com/luismarcelino/freguesias

Freguesias is a bundle for Laravel with all Portuguese administrative regions.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

laravel portugal administrative region