'boolean', 'metadata' => 'array', 'latitude' => 'decimal:7', 'longitude' => 'decimal:7', ]; public function addressable(): MorphTo { return $this->morphTo(); } public function country(): BelongsTo { return $this->belongsTo(Country::class); } public function subdivision(): BelongsTo { return $this->belongsTo(CountrySubdivision::class, 'country_subdivision_id'); } public function getFormattedAttribute(): string { return collect([ $this->attention, $this->line_1, $this->line_2, $this->line_3, $this->locality, $this->administrative_area, $this->postal_code, $this->country?->effective_name ?? $this->country?->name, ])->filter()->implode(', '); } }