Indonesian Administrative Division ( Pembagian Administratif Indonesia, Provinsi, Kota, Kelurahan ) For Laravel
This is package helper for Indonesian Administrative Division Area.
You can install the package via composer:
composer require konnco/laravel-inadiv
You need to migrate the files via:
php artisan migrate
the usage is same as common Laravel Model, in this package there's 4 Models that you can use.
Konnco\Inadiv\Models\Province
Konnco\Inadiv\Models\City
Konnco\Inadiv\Models\District
Konnco\Inadiv\Models\Subdisctict
So if you have another function that need to included in this model, just Extend into another class.
use Konnco\Inadiv\Models\Province as BaseProvinceModel;
class Province extends BaseProvinceModel {
public function yourCustomFunctionHere() {
}
}
composer test
Please see CHANGELOG for more information on what has changed recently.
Please see CONTRIBUTING for details.
Please review our security policy on how to report security vulnerabilities.
The MIT License (MIT). Please see License File for more information.