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 44
static Users
attachmentUploader(int $id)
Retrieves user who uploaded an attachment.
at line 55
static void
deleteAttachment(EmailAttachments $attachment)
Deletes an attachment
at line 69
static string
name(EmailAttachments $attachment)
Sets name for the attachment.
at line 80
static void
previewAttachment(int $id)
Generates preview for attachment in new tab.
at line 101
static void
processAttachment(EmailAttachments $attachment, Input $request)
Sets fields for attachment record based on file information and performs uploads.