Laravel 5 Multiple Download File
Este código funcionará correctamente si abro el navegador en 127.0.0.1/load/files. (Archivo de descarga automática)
ABCController.php
namespace App\Http\Controllers;
use Response;
use File;
function download_file(){
return Response::download(public_path() . "/files/file_1.txt");
}
routes.php
Route::get('/load/files','ABCController@download_file');
¿Puedo usar 1 ruta y 1 función para descargar 2 archivos al mismo tiempo? Como
function download_file(){
return Response::download(["file_1.txt","file_2.txt"]); //this code not right
}
Gracias por cualquier ayuda.