userId <= 0) { throw new BadRequestException('userId must be positive'); } return $this->postRepo->findByUserId($request->userId); } }