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:
@@ -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());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user