change-request: add custom geo layer

This commit is contained in:
2025-03-06 16:50:13 +07:00
parent 22ee7502ad
commit dceb46ab86
3 changed files with 113 additions and 16 deletions

View File

@@ -39,7 +39,7 @@ class TourismController extends Controller
$tourisms->village_name = $village ? $village->village_name : null;
$district = DB::table('districts')->where('district_code', $tourisms->district_code)->first();
$tourisms->district_name = $village ? $village->village_name : null;
$tourisms->district_name = $district ? $district->district_name : null;
return $tourisms;
});