sawirricardo/indonesia-region

This is my package indonesia-region
2,917 1
Install
composer require sawirricardo/indonesia-region
Latest Version:1.2.0
PHP:^7.3|^8.0
Laravel:7 – 10
License:MIT
Last Updated:Oct 9, 2023
Links: GitHub  ·  Packagist
Maintainer: ricardosawir

🇮🇩 Indonesia Region

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

Use Indonesia Region data in your Laravel App.

Support us

Investing on Indonesia Region is defintely a good move from you. You can support by donating to my wallet

Installation

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,
];

Usage

$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();

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.

Related Packages

sawirricardo/filament-nouislider

Use noUiSlider Side by side with your filament apps

12,620 3
sawirricardo/whatsapp-php

Use Whatsapp's Cloud API

1,009 21
sawirricardo/laravel-midtrans

Laravel Midtrans - Wrapper for Midtrans package

16,719 12
sawirricardo/laravel-api2pdf

This is my package laravel-api2pdf

1,529 3
sawirricardo/laravel-amantelepower

Amantelepower notification channel for Laravel

1,049 1

Version History

Version Released PHP Laravel License
1.2.0 ^7.3|^8.0 ^7.0 | ^8.73 | ^9.0 | ^10.0 MIT
1.1.1 ^7.3|^8.0 ^7.0 | ^8.73 | ^9.0 MIT
1.1.0 ^7.3|^8.0 ^7.0 | ^8.73 | ^9.0 MIT
1.0.7 ^7.3|^8.0 ^8.73 | ^9.0 MIT
1.0.6 ^7.3|^8.0 ^8.73 | ^9.0 MIT