AttachmentService
final class AttachmentService
Service for managing attachment uploads and deletion.
Methods
static Uploads|null
static Users
attachmentUploader(int $id)
Retrieves user who uploaded an attachment.
static void
static string
static void
previewAttachment(int $id)
Generates preview for attachment in new tab.
static void
processAttachment(EmailAttachments $attachment, Input $request)
Sets fields for attachment record based on file information and performs uploads.
Details
at line 24
static Uploads|null
attachmentUpload(EmailAttachments $attachment)
Generates upload object for attachments.
at line 45
static Users
attachmentUploader(int $id)
Retrieves user who uploaded an attachment.
at line 56
static void
deleteAttachment(EmailAttachments $attachment)
Deletes an attachment
at line 70
static string
name(EmailAttachments $attachment)
Sets name for the attachment.
at line 81
static void
previewAttachment(int $id)
Generates preview for attachment in new tab.
at line 102
static void
processAttachment(EmailAttachments $attachment, Input $request)
Sets fields for attachment record based on file information and performs uploads.