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