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