Answer the question
In order to leave comments, you need to log in
How to send raw file in laravel?
Actually the question in the title is how to send a raw file in a stream to the browser?
This obviously doesn't work
return response()->stream(function() use($file) {
echo $file;
}, 200);
Call to undefined method Symfony\Component\HttpFoundation\StreamedResponse::header()
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question