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

Postal Pt Laravel Package

luismarcelino/postal-pt

View on GitHub
Deep Wiki
Context7

Freguesias

Postal-PT is a Laravel 5 package that provides all post codes in Portugal.

Instalation

Add luismarcelino/postal-pt to composer.json.

"luismarcelino/postal-pt": "dev-master"

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

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

'providers' => [
    Luismarcelino\PostalPt\CodigosPostaisServiceProvider::class,
]

Now add the alias.

'aliases' => [
    'PostalPt' => Luismarcelino\PostalPt\CodigosPostaisFacade::class,
]

Publishing

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

$ php artisan vendor:publish

To generate the migration file use:

$ php artisan postalpt:migration

This will generate the <timestamp>_setup_post_codes_pt_table.php migration file. To run the migration, run as usual:

php artisan migrate

As the amount of the data to be inserted in the 'post_code_pt' table is large, you must use the follow artisan command (there is no 'db:seed' file):

php artisan postalpt:seed
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.
cadot.eu/make
besmartand-pro/php-quality-config
sentix/ai-chatbot
codifyo/ts-generator-bundle
mintobit/jobqueue
a4sex/maintenance-bundle
a4sex/entity-date-update
a4sex/client-identifier
a4sex/base-utilites
a4sex/key-value-storage
a4sex/micro-status
chilldev/dependency-injection-extra
datinglibre/datinglibre-app-api
biberltd/corebundle
bricre/symfony-bundle-test
biberltd/logbundle
dominium/http-adapter-bundle
dominium/google-analytics
a4sex/auto-clean-entity
christhompsontldr/laravel-inky