PHP code example of valpuia / mizokhua
1. Go to this page and download the library: Download valpuia/mizokhua library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
valpuia / mizokhua example snippets
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();
bash
php artisan mizokhua:seed