project-management icon indicating copy to clipboard operation
project-management copied to clipboard

Attachment Ticket Access

Open MirzaQusyairi opened this issue 1 year ago • 1 comments

how i can access or view the attachment from the ticket cause i cant view or click something at the frontend side, is the feature still on develop?

image

MirzaQusyairi avatar Sep 20 '24 02:09 MirzaQusyairi

Hi,

In App/Http/Livewire/Ticket/Attachments, you can edit the function getTableColumns() like this :

TextColumn::make('name')
                ->label(__('File'))
                ->sortable()
                ->searchable()
                ->url(function ($record) {
                    $attachmentId = $record->id;
                    $attachmentFile = $record->file_name;
                    return asset('storage/' . $attachmentId . '/' . $attachmentFile);
                }, true),

Hope that can helps you !

TsuLee avatar Nov 29 '24 00:11 TsuLee