I have 3 different fields in the database: city, state, country. How do I define another attribute in Eloquent to return one string from those 3 fields?
First approach, but it doesn't work:
protected $address = "";
public function getAddress() : string {
return $this->city . $this->state . " - " . $this->country;
}