Skip to content

Commit 486a25e

Browse files
committed
Re-enable global scope for 'daftarSp2d' count in KerangkaAcuan: Restore data aggregation functionality
1 parent b92c02d commit 486a25e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

app/Models/KerangkaAcuan.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,9 @@ public function spesifikasiKerangkaAcuan(): HasMany
5353

5454
protected static function booted(): void
5555
{
56-
// static::addGlobalScope('with-daftar-sp2d-count', function (Builder $builder) {
57-
// $builder->withCount('daftarSp2d');
58-
// });
56+
static::addGlobalScope('with-daftar-sp2d-count', function (Builder $builder) {
57+
$builder->withCount('daftarSp2d');
58+
});
5959

6060
static::creating(function (KerangkaAcuan $kak) {
6161
$kak->status = 'dibuat';

0 commit comments

Comments
 (0)