valpuia / mizokhua
List of districts and villages in Mizoram
Fund package maintenance!
Valpuia
Requires
- php: ^8.2||^8.3
- illuminate/contracts: ^10.0||^11.0
- spatie/laravel-package-tools: ^1.16
Requires (Dev)
- laravel/pint: ^1.14
- nunomaduro/collision: ^8.1.1||^7.10.0
- orchestra/testbench: ^9.0.0||^8.22.0
- pestphp/pest: ^2.34
- pestphp/pest-plugin-arch: ^2.7
- pestphp/pest-plugin-laravel: ^2.3
README
Awlsam tak a Mizoram chhung a district leh khua te neih na (Easy way to get lists of district and village in Mizoram)
Installation
You can install the package via composer:
composer require valpuia/mizokhua php artisan mizokhua:install
mizokhua:install
hmang hian migration files a in published nghal a chuan run nghal turin a rawn zawt ang che (After running mizokhua:install
it published migration files and ask you to run the migration)
Seeder
php artisan mizokhua:seed
mizokhua:seed
hmang hian districts leh villages te database ah a in dahlut anga, awlsam takin i application ah a hnuai ami ang hian i hmang thei ang (Using mizokhua:seed
command it seeds districts and villages in database and you can easily use like below)
Usage
use Valpuia\Mizokhua\Models\District; use Valpuia\Mizokhua\Models\Village; Village::with('district') // ->where('district_id', 1) // ->where('name', 'Aibawk') ->get(); District::with('villages') // ->where('name', 'Aizawl') ->get();
TODO
- Publish Seeders
- Publish Models
Changelog
Please see CHANGELOG for more information on what has changed recently.
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.