After upgrading to Laravel 5.5, this code:
$headers = ['Content-Type: ' . $fileData[2]];
return Response::download($fileData[0], $fileData[1] ,$headers);
generates this error:
Call to undefined method Symfony\Component\HttpFoundation\BinaryFileResponse::withCookie()
in CreateFreshApiToken.php (line 51)
at CreateFreshApiToken->handle(object(Request), object(Closure))
in Pipeline.php (line 149)
Any idea? Might it be a bug? It worked well with Laravel 5.4.
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire