Мне нужно расширить класс ModelTable, чтобы добавить метод Follow только один раз, а не в каждом классе
public function addOrUpdate($data, $options=[]) {
if ($this->existe($data)) {
$obj = $this->findById($data['id'])->first();
$obj = $this->patchEntity($obj, $data,$options);
}else{
$obj = $this->newEntity($data,$options);
}
return $this->save($obj);
}