src/Http/Controllers/HasExport.php
public function export(ExportRequest $request, Export $export)
    {
        $export
            ->setResource($this->resource)
            ->setRequest($request)
            ->export();
    }
public function export(ExportRequest $request, Export $export)
    {
        $export
            ->setResource($this->resource)
            ->setRequest($request)
            ->export();
    }
Export resource

@param ExportRequest $request
@param Export $export