This commit is contained in:
2026-09-16 11:09:08 +07:00
parent a76b014056
commit 539239b507
10 changed files with 1049 additions and 23 deletions
+6
View File
@@ -9,6 +9,7 @@ use App\Models\Wilayah\DesaKelurahan;
use Carbon\Carbon;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
use Illuminate\Database\Eloquent\Relations\HasOne;
use Illuminate\Database\Eloquent\SoftDeletes;
class PengurusBumdes extends Model
@@ -105,4 +106,9 @@ class PengurusBumdes extends Model
{
return $this->belongsTo(User::class, 'created_by');
}
public function kelembagaanAktor(): HasOne
{
return $this->hasOne(KelembagaanAktorBumdes::class, 'pengurus_bumdes_id');
}
}