getPk(); $row->getQuery()->where($pk, $row[$pk])->update(['weigh' => $row[$pk]]); } }); } public function getHeadImageAttr($value, $data) { if (!empty($value)) return cdnurl($value, true); } }