We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b92c02d commit 486a25eCopy full SHA for 486a25e
app/Models/KerangkaAcuan.php
@@ -53,9 +53,9 @@ public function spesifikasiKerangkaAcuan(): HasMany
53
54
protected static function booted(): void
55
{
56
- // static::addGlobalScope('with-daftar-sp2d-count', function (Builder $builder) {
57
- // $builder->withCount('daftarSp2d');
58
- // });
+ static::addGlobalScope('with-daftar-sp2d-count', function (Builder $builder) {
+ $builder->withCount('daftarSp2d');
+ });
59
60
static::creating(function (KerangkaAcuan $kak) {
61
$kak->status = 'dibuat';
0 commit comments