dev-master
9999999-dev https://github.com/luismarcelino/freguesiasFreguesias is a bundle for Laravel with all Portuguese administrative regions.
MIT
The Requires
- php >=5.3.0
laravel portugal administrative region
Freguesias is a bundle for Laravel with all Portuguese administrative regions.
Freguesias is a Laravel 5 package that provides all administrative regions in Portugal: distritos, concelhos and freguesias., (*1)
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, ]
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
Freguesias is a bundle for Laravel with all Portuguese administrative regions.
MIT
laravel portugal administrative region