Weave 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

Indonesia Laravel Package

laravolt/indonesia

Laravel package for Indonesian regional data: provinces, cities/regencies, districts, and villages, with models, migrations, seeders, and helpers for addresses, postal codes, and location lookups. Quickly add accurate Indonesia area data to your app.

View on GitHub
Deep Wiki
Context7

Package Laravel yang berisi data Provinsi, Kabupaten/Kota, dan Kecamatan/Desa di seluruh Indonesia.

Frequently asked questions about Indonesia
What does the laravolt/indonesia package actually provide for Laravel?
It ships Indonesian administrative region data: provinces, regencies/cities, districts, and villages, along with Eloquent models, migrations, seeders, and helpers for addresses, postal codes, and location lookups. You get a ready-to-seed reference dataset instead of building and maintaining one yourself. It is Laravel-native, so it relies on package discovery, migrations, seeders, and Eloquent rather than custom glue code.
How do I install laravolt/indonesia in a Laravel application?
Install it with Composer using composer require laravolt/indonesia, then publish and run the package migrations and execute the seeders to load the region data. Because it supports Laravel package discovery, no manual service provider registration is normally needed. After seeding, verify lookups for province, regency, district, village, and postal code before wiring it into your address forms or APIs.
Which Laravel versions does laravolt/indonesia v0.41 support?
The v0.41 release is a compatibility release that adds Laravel 13.x support and introduces no new domain features. Confirm the package's supported PHP range and CI matrix before upgrading, especially if your app still runs an older Laravel version. If you are not on Laravel 13 and not planning that upgrade soon, v0.41 is not an urgent change.
Is upgrading to v0.41 a breaking change for existing Laravel apps?
The release is described as compatibility-only, with no stated breaking changes, deprecations, or schema changes, so risk is low. Residual risk comes from the surrounding upgrade path: Laravel 13 dependency constraints, PHP requirements, and migration or seed behavior in existing environments. Test in an isolated branch and run your full suite before merging.
How should I seed and refresh the Indonesian region data safely?
Treat seeding as a data lifecycle task, not a one-off command: publish the migrations, run them, then execute seeders against staging with a production-like copy. Check whether the package's seeder strategy is idempotent so repeat runs do not duplicate records or break foreign keys. For production, plan a controlled refresh with backups and a rollback path for both the dependency and any data migrations.
Should I use the package models directly in my controllers?
It is better to wrap package models behind an internal repository or service layer so controllers and domain logic do not depend on package internals. Administrative region data changes over time, and package updates should not leak into your domain contracts. An abstraction also lets you add caching, swap data sources, and expose your own lookup API without rewriting callers.
Does laravolt/indonesia include village and postal code granularity?
Yes, the package covers provinces, regencies/cities, districts, and villages, plus helpers for addresses and postal codes. That granularity is useful for checkout forms, shipping calculations, and demographic reporting. If you only need province, regency, or district lookup, you can still use the package but should scope your queries and caching accordingly.
How do I keep Indonesian region data fresh and accurate?
The package gives you models, migrations, and seeders, but data freshness is your operational responsibility. Check the dataset source, update cadence, licensing, and governance model before relying on it as a source of truth. Schedule periodic refreshes through seeders in staging, and validate boundary changes such as new regencies or reorganized districts before promoting to production.
What are the production performance considerations for region lookups?
Region tables are read-heavy and mostly static, so cache province, regency, district, and village lookups in your application layer or via Redis to avoid repeated queries on every request. Index the columns you filter on, such as parent region IDs and postal codes. Because seeders can load large village datasets, run them during maintenance windows and measure migration time in staging first.
What alternatives exist to laravolt/indonesia for Indonesian address data?
Alternatives include maintaining your own region tables from official government datasets, consuming a third-party geocoding or address API, or using other community packages with similar scope. The laravolt/indonesia advantage is that it is Laravel-native with models, migrations, and seeders already wired for package discovery. Compare on data freshness, village and postal code coverage, licensing, and maintenance activity before choosing.
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.
novasa/laravel-language-center
opencage/geocode
adolfoholzer/parameters
livenetworks/ln-starter
shitoudev/permissionmanager
johannesclimacus/laravel-tui
hocvt/seotools
vitalybaev/sypexgeo
amphibee/themosis-ignition
gito-me/fast-excel
frankyso/laravel-ipaymu
geolize-studio/laravel-chile
boomerangui/chat
jinas/dhivatar
store-doc/laravel-storage-driver
plus-it/laravel-translation-manager
diephp/perhaps
diephp/telegraph
osmaviation/spreadsheet
microsoft/fluentui-system-icons