public function getContentAttr($value, $data) { if (isset($data['content']) && !empty($data['content'])) { $content = $data['content']; $content = str_replace("http://xfcyjs.maoln.com", "", $content); $content = str_replace("<img src="/uploads", "<img style=" 100%;!important" src="" . request()->domain() . "/uploads", $content); $content = str_replace("<video src="/uploads", "<video style=" 100%;!important" src="" . request()->domain() . "/uploads", $content); } else { $content = ''; } return $content; }