Explore/ismail (#3)
Build Docker Image / build-backend (push) Successful in 1m11s

Co-authored-by: ISMAIL MASSERAN <topaz@Mac.dlinkrouter.local>
Reviewed-on: #3
This commit was merged in pull request #3.
This commit is contained in:
2026-08-26 16:19:29 +08:00
parent 51860cea37
commit be93821fad
28 changed files with 3565 additions and 81 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.
*