我正在尝试使用app Hybrid导出(下载)文件或excel,但它不起作用而不返回错误 . 这是我的代码与Laravel-lumen(后端)和使用

function getTransactionsExcel(Request $request){
$fecha_actual=Carbon::now()->format("Y-m-d");
//return $fecha_actual;
$excel=Excel::create('List '.$fecha_actual, function($excel) use($fecha_actual)  {

    $excel->sheet('List', function($sheet) use($fecha_actual)  {


        $sheet->mergeCells('A2:E2');
        $sheet->row(2,(
            array('PLAZA BELLIN')
        ));


        $sheet->mergeCells('A3:E3');
        $sheet->row(3,(
            array('LIST')
        ));


})->export('xlsx');

}

在Angular2(前端)

在服务使用中:

import { Response, ResponseContentType } from '@angular/http';

downloadExcel(){
      let url = 'your url/api'
      return this.http.get(url,{headers:'pass your header',responseType: ResponseContentType.Blob})
      .map(response=>response.blob())
      .catch(error=>{return Observable.throw(error)})
  }

我使用buttom下载文件 . 如果有人有答案我会很感激!谢谢 .