title: laravel adding .txt on the downloaded file
body: <p>im trying to give the user ability to download a specific file. here is my code.</p>
  
  <p>but it keeps adding .txt after the file is downloaded which I want is a .csv</p>
  
  <pre><code>public function downloadCSVSample()
      {
  
          $file= public_path(). "/downloads/SampleCSV.csv";
          $headers = array(
                'Content-Type: application/csv',
              );
          return Response::download($file, 'SampleCSV.csv', $headers);
  
      }
  </code></pre>