code: public function export(ExportRequest $request, Export $export)
      {
          $export
              ->setResource($this->resource)
              ->setRequest($request)
              ->export();
      }
docs: Export resource
  
  @param ExportRequest $request
  @param Export $export