$feed['id'], 'uid' => $feed['uid'], 'follow_uid' => $feed['follow_uid'], 'follow_username' => $feed['follow_username'], 'follow_avatar' => $feed['follow_avatar'], // 'follow_status' => $this->getFollowStatus($feed['uid'],$feed['follow_uid']), 'type' => $feed['type'], 'relate_id' => $feed['relate_id'], 'relate_data' => $feed['relate_data'], 'content' => json_decode($feed['content']), 'created_at' => Carbon::parse($feed['created_at'])->diffForHumans(), ]; } public function getData($feed){ // if($feed['type'] == 6){ // return $this->detail($feed['relate_id']); // } } }