Closed bilfeldt closed 3 years ago
When returning a streamed response (download of file) then the following error is thrown:
Call to undefined method Symfony\Component\HttpFoundation\StreamedResponse::status()
which is caused by
$event->response->status() // src/Listeners/LogRouteStatistics.php:26
Flare error: https://flareapp.io/share/x5MqjZe5
/test
// web.php Route::get('/test', function () { return Storage::download('test.csv'); });
Solved in #4 by using getStatusCode() instead of status()
getStatusCode()
status()
Description
When returning a streamed response (download of file) then the following error is thrown:
which is caused by
Flare error: https://flareapp.io/share/x5MqjZe5
Steps to recreate
/test
in a browser