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 da83661 commit b30afaaCopy full SHA for b30afaa
1 file changed
src/Controllers/MailDownloadController.php
@@ -4,7 +4,7 @@
4
5
use Illuminate\Routing\Controller;
6
use Illuminate\Support\Facades\Storage;
7
-use Vormkracht10\Mails\Models\MailAttachment;
+use Illuminate\Support\Facades\Config;
8
9
class MailDownloadController extends Controller
10
{
@@ -17,8 +17,9 @@ public function __invoke(...$arguments)
17
$tenant = null;
18
}
19
20
- /** @var MailAttachment $attachment */
21
- $attachment = MailAttachment::find($attachment);
+ $attachmentModel = Config::get('mails.models.attachment');
+ /** @var \Vormkracht10\Mails\Models\MailAttachment $attachment */
22
+ $attachment = $attachmentModel::find($attachment);
23
24
$file = Storage::disk($attachment->disk)->path($attachment->storagePath);
25
0 commit comments