protected function displayAddress(): Attribute
{
return Attribute::make(
get: function() {
$addr = explode(PHP_EOL, $this->address);
$fullAddr = array_merge($addr, [$this->town, $this->postcode]);
return implode('<br />', array_filter($fullAddr));
},
);
}
protected function displayAddress(): Attribute
{
return Attribute::make(
get: function() {
$addr = explode(PHP_EOL, $this->address);
$fullAddr = array_merge($addr, [$this->town, $this->postcode]);
return implode('<br />', array_filter($fullAddr));
},
);
}