public function createNewsReply(array $data) { $reply = Reply::Create(['keyword_rule_id' => $data['keyword_rule_id'], 'reply_type' => $data['reply_type']]); ReplyNews::firstOrCreate(['reply_id' => $reply->id, 'content' => $data['msg_content']]); return Reply::with('news')->find($reply->id()); }