workign kaban board

This commit is contained in:
Mark Gregory
2026-06-17 14:03:54 +01:00
parent 47a67e83dc
commit bfea992994
8 changed files with 140 additions and 47 deletions
@@ -4,6 +4,7 @@ declare(strict_types=1);
namespace Modules\Helpdesk\Services;
use Illuminate\Http\UploadedFile;
use Illuminate\Support\Facades\Storage;
use Modules\Helpdesk\Models\Attachment;
use Modules\Helpdesk\Models\Comment;
@@ -14,6 +15,9 @@ final class AttachmentService
public function storeMany(Ticket $ticket, array $files, int $userId, ?Comment $comment = null): void
{
foreach ($files as $file) {
if (! $file instanceof UploadedFile || ! $file->isValid()) {
continue;
}
$disk = (string) config('helpdesk.disk', 'public');
$originalName = $file->getClientOriginalName();