diff --git a/app/Http/Controllers/Api/InspeksiLahanController.php b/app/Http/Controllers/Api/InspeksiLahanController.php index e1b15f0..9ca38cf 100644 --- a/app/Http/Controllers/Api/InspeksiLahanController.php +++ b/app/Http/Controllers/Api/InspeksiLahanController.php @@ -45,7 +45,7 @@ class InspeksiLahanController extends Controller $validated = $request->validate([ 'petani_id' => 'required|exists:users,id', - 'lahan_id' => 'required|exists:lahan,id', + 'lahan_id' => 'required|exists:map_lahan,id', 'air' => 'nullable|string', 'ph' => 'nullable|numeric|between:0,14', 'humidity' => 'nullable|string',