download fixes

This commit is contained in:
Mark Gregory
2026-10-12 10:54:23 +01:00
parent 9c3353924b
commit f9123813fb
5 changed files with 48 additions and 1 deletions
@@ -38,6 +38,12 @@ final class ReleaseController extends Controller
return $this->send($release);
}
public function productDetails(DownloadProduct $product)
{
abort_unless($product->is_published && $product->file_path, 404);
return view('downloads.product', compact('product'));
}
public function productDownload(DownloadProduct $product): BinaryFileResponse
{
abort_unless($product->is_published && $product->file_path && Storage::disk('local')->exists($product->file_path), 404);