public function handle($request) { $member = $this->memberRepository->getByName($request->name); if (!$member) { throw new MemberNotFoundException(); } $threads = $this->threadRepository->getRecentByMember($member, 5); $replies = $this->replyRepository->getRecentByMember($member, 5); return new ViewProfileResponse($member, $threads, $replies); }