Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Freguesias Laravel Package

luismarcelino/freguesias

View on GitHub
Deep Wiki
Context7

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
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
nasirkhan/laravel-sharekit
directorytree/privacy-filter-classifier
directorytree/privacy-filter
datacore/hub-sdk
develia/commons
cuci/prototurk-sdk
cuci/prototurk-sdk-symfony
develia/geo-bundle
dreamzy/livewire-charts
touchestate-sdk/php-sdk
22h/doctrine-garbage-collection-bundle
agtp/agtp-php
agtp/mod-php
splash/sonata-admin
splash/metadata
splash/openapi
splash/scopes
splash/toolkit
testo/output-teamcity
testo/bridge-symfony