Noone answered so I decided to use Traits, cause there is more than one contactable model.
trait ContactableTrait {
public function getContactData($column) {
return $this->contactData ? $this->contactData->$column : '';
}
}
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community