@nicknorth Does it help you?
public function downloadFile($file)
{
$path = storage_path("app/public/{$file}");
return response()->streamDownload(function () use ($path) {
readfile($path);
}, $file);
}
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I want to stream a file download from a Nova action. This GiHub issue raises the problem, and is marked as having been implemented, but I can't find anything saying how to go about it. Does anyone know how to do this?
Please or to participate in this conversation.