Explore/ismail (#12)

Co-authored-by: ISMAIL MASSERAN <topaz@ISMAILs-Macbook.local>
Co-authored-by: ISMAIL MASSERAN <topaz@Mac.dlinkrouter.local>
Reviewed-on: #12
Co-authored-by: ismailmasseran <ismail@koppkb.com>
Co-committed-by: ismailmasseran <ismail@koppkb.com>
This commit was merged in pull request #12.
This commit is contained in:
2026-09-09 14:47:33 +08:00
committed by afrina
parent 5fc212f6af
commit 7920eb9f71
38 changed files with 4093 additions and 90 deletions
+11
View File
@@ -11,6 +11,17 @@ class Cawangan extends Model
public $timestamps = false;
/**
* Display name from master table (`details_caw`).
* Keep this as the single mapping so callers do not guess nama/namacaw.
*/
public function getNamaCawanganAttribute()
{
$nama = trim((string) ($this->attributes['details_caw'] ?? ''));
return $nama !== '' ? $nama : (string) ($this->attributes['kodcaw'] ?? '');
}
/**
* The attributes that are mass assignable.
*