title: Unable to download excel sheet from array using Laravel-Excel?
body: <p>I have written code for exporting the data(which is from Query builder) and downloading that sheet immediately to user's browser. I am using Laravel-Excel package for this, but the csv file is not getting downloaded. </p>
  
  <p>I want the csv file to be 'Tab' delimited like below:</p>
  
  <pre><code> Supplier     Campaign    Disposition
  sup-value1   cam-value1    dis-value1
  sup-value2   cam-value2    dis-value2
  sup-value3   cam-value3    dis-value3
  </code></pre>
  
  <p>My input as array is :</p>
  
  <pre><code>$results = 
  Array
  (
  [0] =&gt; Array
      (
          [Supplier] =&gt; Avikmithran
          [Campaign] =&gt; krisha
          [Disposition] =&gt; testing purpose
      )
  [1] =&gt; Array
      (
          [Supplier] =&gt; Avikmithran
          [Campaign] =&gt; testscaseqwe
          [Disposition] =&gt; this is the disposition
      )
  [2] =&gt; Array
      (
          [Supplier] =&gt; Avikmitra
          [Campaign] =&gt; KrishnaL
          [Disposition] =&gt; this is testing
      )
  [3] =&gt; Array
      (
          [Supplier] =&gt; Sonali
          [Campaign] =&gt; starslab
          [Disposition] =&gt; this is the disposiiton
      )
  )
  </code></pre>
  
  <p>CSV file download code is:</p>
  
  <pre><code>Excel::create('Statistics', function($excel) use($results) {
  
              $excel-&gt;sheet('Statistics', function($sheet) use($results) {
  
                  $sheet-&gt;with($results);
  
              });
  
  })-&gt;export('csv');
  </code></pre>
  
  <p>It is driving the nuts, I have wasted 2 days on this already. Can anyone please tell me what is my mistake? Thanks.</p>