Nayjest\Grids\Components\CsvExport::setCsvHeaders PHP Method

setCsvHeaders() protected method

protected setCsvHeaders ( Illuminate\Http\Response $response )
$response Illuminate\Http\Response
    protected function setCsvHeaders(Response $response)
    {
        $response->header('Content-Type', 'application/csv');
        $response->header('Content-Disposition', 'attachment; filename=' . $this->getFileName());
        $response->header('Pragma', 'no-cache');
    }