belongsTo(\App\Models\LocationTown::class, 'birth_town_id'); } public function residenza_town_id_value() { return $this->belongsTo(\App\Models\LocationTown::class, 'residenza_town_id'); } public function documento_rilasciato_da_town_id_value() { return $this->belongsTo(\App\Models\LocationTown::class, 'documento_rilasciato_da_town_id'); } public function documento_rilasciato_da_di_foreign_country_value() { return $this->belongsTo(\App\Models\LocationCountry::class, 'documento_rilasciato_da_di_foreign_country'); } public function foreign_birth_country_value() { return $this->belongsTo(\App\Models\LocationCountry::class, 'anag_foreign_birth_country'); } public function foreign_residence_country_value() { return $this->belongsTo(\App\Models\LocationCountry::class, 'anag_foreign_residence_country'); } public function sede_legale_town_id_value() { return $this->belongsTo(\App\Models\LocationTown::class, 'sede_legale_town_id'); } public function sede_legale_prov_id_value() { return $this->belongsTo(\App\Models\LocationProvince::class, 'sede_legale_prov_id'); } public function residenza_prov_id_value() { return $this->belongsTo(\App\Models\LocationProvince::class, 'residenza_prov_id'); } public function get($key) { return $this->getAttribute($key); } }