Awlsam tak a Mizoram chhung a district leh khua te neih na (Easy way to get lists of district and village in Mizoram)
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)
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)
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();
- Publish Seeders
- Publish Models
Please see CHANGELOG for more information on what has changed recently.
Please review our security policy on how to report security vulnerabilities.
The MIT License (MIT). Please see License File for more information.