project-management
project-management copied to clipboard
Attachment Ticket Access
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?
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 !