This commit is contained in:
2026-03-11 11:01:55 +07:00
parent ab4da668bd
commit 6568eb8f1e
4 changed files with 150 additions and 2 deletions
+1 -2
View File
@@ -17,9 +17,8 @@ class PanenController extends Controller
Gate::authorize('petani');
$user = Auth::user();
// Mengasumsikan farmer_id di data panen merujuk pada profile->id atau user_id
$listPanen = Panen::where('farmer_id', $user->profile->id)->get();
return response()->json($listPanen);
}