I have function that create TXT file. I'm trying to redirect to same page with parameter when it success to create a TXT file.
$fileName = "GROUP".$footerExport.".txt";
$headers = [
'Content-type' => 'text/plain',
'Content-Disposition' => sprintf('attachment; filename="%s"', $fileName)
];
return Response::make($output, 200, $headers);
I have tried header before return also doesn't work. Any other way to redirect when success create TXT file?
$url = action('ECFTController@payECFT', ['ClaimPeriod' => $claimPeriod, 'CategoryID' => $CategoryID]);
header('Location: '.$url);
return Response::make($output, 200, $headers);
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire