public function transform(KudosuHistory $kudosuHistory)
{
return ['id' => $kudosuHistory->exchange_id, 'action' => $kudosuHistory->action, 'amount' => $kudosuHistory->amount, 'createdAt' => json_time($kudosuHistory->date), 'giver' => ['url' => route('users.show', $kudosuHistory->giver_id), 'name' => $kudosuHistory->giver->username], 'post' => ['url' => route('forum.posts.show', $kudosuHistory->post_id), 'title' => $kudosuHistory->post->topic->topic_title]];
}