This commit is contained in:
SitiAfiah 2026-06-07 20:21:08 +07:00
commit e748c8cb60
1 changed files with 3 additions and 1 deletions

View File

@ -22,7 +22,9 @@ public function anggota()
// Filter data: Ambil anggota yang relasi 'role'-nya bernama 'Anggota'
$data_anggota = Anggota::whereHas('role', function($query) {
$query->where('nama_role', 'Anggota');
})->with(['kolat', 'role'])->get();
})->with(['kolat', 'role'])
->latest()
->get();
return view('anggota.anggota', compact('data_anggota'));
}