New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

luismarcelino/freguesias

Freguesias is a bundle for Laravel with all Portuguese administrative regions.
17
Install
composer require luismarcelino/freguesias:dev-master
PHP:>=5.3.0
License:MIT
Last Updated:Aug 18, 2015
Links: GitHub  ·  Packagist
Maintainer: luismarcelino

Freguesias

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

Instalation

Add luismarcelino/freguesias to composer.json.

"luismarcelino/freguesias": "dev-master"

Run composer update to pull down the latest version of Freguesias List.

Edit config/app.php and add the provider and filter

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

Now add the alias.

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

Publishing

Optionaly you can publishing the configuration if you want to change the default table name freguesias:

$ php artisan vendor:publish

To generate the migration file use:

$ 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:

php artisan migrate:refresh

To run just this seeder user the artisan command:

php artisan db:seed --class=FreguesiasSeeder

Related Packages

luismarcelino/postal-pt

Postal-PT is a bundle for Laravel with all Portuguese postal codes.

11 1
renshipt/laravel-portugal-cities

Laravel Portugal Cities is a bundle for Laravel.

45 1
a6digital/laravel-default-profile-image

Laravel package to create default profile image using name of user.

354,804 41
abraham-flutterwave/laravel-payment

The official Flutterwave package for Laravel. Accept payments, send payouts, run...

8,113 7
avexsoft/donkey

The smart-ass Laravel package to manage `config()` in production

2,293 4