Skip to content

Commit 6f26e9a

Browse files
committed
Add count for 'daftarSp2d' in KerangkaAcuan index query: Enhance data retrieval
1 parent 1e758c8 commit 6f26e9a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/Nova/KerangkaAcuan.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public static function indexQuery(NovaRequest $request, $query)
4545
return $query->where('unit_kerja_id', Helper::getDataPegawaiByUserId($request->user()->id, now())->unit_kerja_id);
4646
}
4747

48-
return $query;
48+
return $query->withCount('daftarSp2d');
4949
}
5050

5151
/**

0 commit comments

Comments
 (0)