- return response()->stream(function() use ($stream) {
- // End & flush the output buffer otherwise we still seem to use memory.
+ return response()->stream(function () use ($stream) {
+
+ // End & flush the output buffer, if we're in one, otherwise we still use memory.
+ // Output buffer may or may not exist depending on PHP `output_buffering` setting.