diff --git a/src/Controllers/MailDownloadController.php b/src/Controllers/MailDownloadController.php index 7bc96cc..52cf222 100644 --- a/src/Controllers/MailDownloadController.php +++ b/src/Controllers/MailDownloadController.php @@ -13,7 +13,7 @@ public function __invoke(string $tenant, string $mail, string $attachment, strin /** @var MailAttachment $attachment */ $attachment = MailAttachment::find($attachment); - $file = Storage::disk($attachment->disk)->path($attachment->uuid); + $file = Storage::disk($attachment->disk)->path($attachment->storagePath); return response()->download( file: $file, @@ -23,4 +23,4 @@ public function __invoke(string $tenant, string $mail, string $attachment, strin ] ); } -} +} \ No newline at end of file