We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 081179b commit 02f1bdfCopy full SHA for 02f1bdf
1 file changed
src/Controllers/MailDownloadController.php
@@ -21,14 +21,6 @@ public function __invoke(...$arguments)
21
/** @var \Vormkracht10\Mails\Models\MailAttachment $attachment */
22
$attachment = $attachmentModel::find($attachment);
23
24
- $file = Storage::disk($attachment->disk)->path($attachment->storagePath);
25
-
26
- return response()->download(
27
- file: $file,
28
- name: $filename,
29
- headers: [
30
- 'Content-Type' => $attachment->mime,
31
- ]
32
- );
+ return $attachment->downloadFileFromStorage();
33
}
34
0 commit comments