major ui updates

This commit is contained in:
Mark Gregory
2026-06-12 15:11:51 +01:00
parent 3c9b39d83b
commit 7bc8f20ed5
154 changed files with 3796 additions and 4117 deletions
@@ -15,17 +15,13 @@ final class AttachmentService
/**
* Store uploaded files against a ticket and optional comment.
*
* @param Ticket $ticket
* @param array<int, UploadedFile> $files
* @param int $userId
* @param Comment|null $comment
* @return void
* @param array<int, UploadedFile> $files
*/
public function storeMany(Ticket $ticket, array $files, int $userId, ?Comment $comment = null): void
{
foreach ($files as $file) {
$disk = (string) config('helpdesk.disk');
$path = $file->store('tickets/' . $ticket->id, $disk);
$path = $file->store('tickets/'.$ticket->id, $disk);
Attachment::query()->create([
'ticket_id' => $ticket->id,
@@ -42,9 +38,6 @@ final class AttachmentService
/**
* Delete a stored attachment and its backing file.
*
* @param Attachment $attachment
* @return void
*/
public function delete(Attachment $attachment): void
{