sawirricardo / indonesia-region
This is my package indonesia-region
Fund package maintenance!
sawirricardo
Installs: 2 849
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 3
Forks: 0
Open Issues: 3
Requires
- php: ^7.3|^8.0
- illuminate/contracts: ^7.0 | ^8.73 | ^9.0 | ^10.0
- spatie/laravel-package-tools: ^1.9.2
- staudenmeir/laravel-adjacency-list: ^1.9
Requires (Dev)
- nunomaduro/collision: ^5.10 | ^6.0
- nunomaduro/larastan: ^1.0 | ^2.0
- orchestra/testbench: ^6.22 | ^7.0
- pestphp/pest: ^1.21
- pestphp/pest-plugin-laravel: ^1.1
- phpstan/extension-installer: ^1.1
- phpstan/phpstan-deprecation-rules: ^1.0
- phpstan/phpstan-phpunit: ^1.0
- phpunit/phpunit: ^9.5
- spatie/laravel-ray: ^1.26
This package is auto-updated.
Last update: 2024-11-09 05:09:44 UTC
README
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
- Wallet 0x3F20d326E5DA8ab6D27d9b2DdD350baB1e589d87
- PayPal https://www.paypal.com/paypalme/sawirricardo.
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.