📅  最后修改于: 2022-03-11 14:54:17.975000             🧑  作者: Mango
$attachment = TicketAttachment::find($id);
$headers = [
'Content-Type' => 'application/jpeg',
'Content-Disposition' => 'attachment; filename="'. $attachment->name .'"',
];
return \Response::make(Storage::disk('s3')->get($attachment->url), 200, $headers);