latest anggota

This commit is contained in:
ell 2026-06-06 09:22:03 +07:00
parent 06f672b441
commit 4b82871a9f
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'));
}