Merge branch 'main' of https://github.com/SitiAfiah/Project-TA
This commit is contained in:
commit
e748c8cb60
|
|
@ -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'));
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue