Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Attachment Ticket Access #126

Open
MirzaQusyairi opened this issue Sep 20, 2024 · 1 comment
Open

Attachment Ticket Access #126

MirzaQusyairi opened this issue Sep 20, 2024 · 1 comment
Assignees

Comments

@MirzaQusyairi
Copy link

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

@TsuLee
Copy link

TsuLee commented Nov 29, 2024

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 !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants