1return Storage::download('file.jpg');
2
3return Storage::download('file.jpg', $name, $headers);
1 $s3_file = Storage::disk('s3')->get(request()->file);
2 $s3 = Storage::disk('public');
3 $s3->put("./file_name.tif", $s3_file);
4
1$attachment = TicketAttachment::find($id);
2$headers = [
3 'Content-Type' => 'application/jpeg',
4 'Content-Disposition' => 'attachment; filename="'. $attachment->name .'"',
5];
6return \Response::make(Storage::disk('s3')->get($attachment->url), 200, $headers);