code: public function paginate($keys=[], $perPage = null)
      {
          $this->buildIfNotBuilded();
          $keys = $keys == [] ? $this->keys() : $keys;
  
          if (!$keys) {
              return $this->builder->paginate($perPage);
          }
  
          return $this->builder->withColumns($keys)->paginate($perPage);
  
      }
docs: Get the paginated result
  
  @param array $keys (optional)
  @param $perPage (optional)
  @return \Traversable