DiskResponses extension

Laravel's Storage::download() and Storage::response(). These live on the http side because storage depends on nothing but foundation.

on

Methods

download(String path, {String? name, Map<String, String>? headers, Request? request}) → Future<Response>

Available on Disk, provided by the DiskResponses extension

The file at path as an attachment.
response(String path, {String? name, Map<String, String>? headers, Request? request}) → Future<Response>

Available on Disk, provided by the DiskResponses extension

The file at path, shown by the browser; with request, ranges too.