*/ protected $fillable = [ 'code', 'name', 'name_en', 'full_name', 'full_name_en', 'code_name', 'province_code', 'administrative_unit_id', ]; /** * Get the province that owns the ward. */ public function province() { return $this->belongsTo(Province::class, 'province_code', 'code'); } /** * Get the administrative unit that owns the ward. */ public function administrativeUnit() { return $this->belongsTo(AdministrativeUnit::class, 'administrative_unit_id'); } }