Skip to content

Indonesian Administrative Division From Province, City, District and Subdistrict For Laravel. Pembagian Administratif Indonesia, Provinsi, Kota, Kelurahan Untuk Laravel

License

Notifications You must be signed in to change notification settings

konnco/laravel-inadiv

Repository files navigation

Indonesian Administrative Division ( Pembagian Administratif Indonesia, Provinsi, Kota, Kelurahan ) For Laravel

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

This is package helper for Indonesian Administrative Division Area.

Installation

You can install the package via composer:

composer require konnco/laravel-inadiv

You need to migrate the files via:

php artisan migrate

Usage

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() {

    }
}

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.

About

Indonesian Administrative Division From Province, City, District and Subdistrict For Laravel. Pembagian Administratif Indonesia, Provinsi, Kota, Kelurahan Untuk Laravel

Topics

Resources

License

Security policy

Stars

Watchers

Forks

Sponsor this project

Packages

 
 
 

Languages