Feature #6 : Update

- Add Get Village by District Code
- Add Get Postal Code by Village Code
- Update Filter on Villages, District, and City, add dropdown to select province, city, district before filter for faster filter
This commit is contained in:
Daeng Deni Mardaeni
2024-08-13 10:42:03 +07:00
parent b75db02f27
commit 4987002a9d
8 changed files with 469 additions and 293 deletions

View File

@@ -158,4 +158,12 @@
]);
}
public function getVillagesByDistrictId($id){
return response()->json(Village::where('district_code', $id)->get());
}
public function getPostalCodesByVillageId($id){
return response()->json(Village::where('code', $id)->first());
}
}