Laravel (5.2) Excel download xls error ERR_INVALID_RESPONSE (chrome)
<p>I can't download/export in <code>xls</code> or <code>xlsx</code> , only in <code>csv</code> format    </p>

<pre><code>$data = Orders::get();
$xls = Excel::create('Orders', function($excel) use($data) {

          $excel-&gt;sheet('orders', function($sheet) use($data) {

              $sheet-&gt;fromArray($data);

          });

      })-&gt;download('xls');
return redirect()-&gt;back();
</code></pre>

<p>I tried to ob_clean in the laravelexcelwriter.php on method _download(line 317) , above the save function(line 341), no result. Also in the save function(line 341) I tried similar options for I/O streams (default is <code>php://output</code>) like <code>php://stdout</code>, <code>php://stderr</code>, <code>php://fd</code>, <code>php://memory</code> and still no result.</p>

<p>is this a php.ini problem? a server problem ? where should I check ?</p>