sawirricardo/indonesia-region is a Laravel package for this is my package indonesia-region.
It currently has 1 GitHub stars and 2.917 downloads on Packagist (latest version 1.2.0).
Install it with composer require sawirricardo/indonesia-region.
Discover more Laravel packages by sawirricardo
or browse all Laravel packages to compare alternatives.
Last updated
Use Indonesia Region data in your Laravel App.
Investing on Indonesia Region is defintely a good move from you. You can support by donating to my wallet
You can install the package via composer:
composer require sawirricardo/indonesia-region
You can publish and run the migrations with:
php artisan vendor:publish --tag="indonesia-region-migrations"
php artisan migrate
You can publish the config file with:
php artisan vendor:publish --tag="indonesia-region-config"
This is the contents of the published config file:
return [
'model' => \Sawirricardo\IndonesiaRegion\Models\IndonesiaRegion::class,
];
$provinces = \Sawirricardo\IndonesiaRegion\Models\IndonesiaRegion::query()->provinces()->get();
$cities = \Sawirricardo\IndonesiaRegion\Models\IndonesiaRegion::query()->cities()->where('parent_id',1)->get();
$districts = \Sawirricardo\IndonesiaRegion\Models\IndonesiaRegion::query()->districts()->where('parent_id',1)->get();
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.