Build Laravel 13 ticket assistant with Docker, Livewire admin, and helpdesk scraper command

This commit is contained in:
SitiWeb
2026-04-29 13:11:39 +02:00
parent 141a1a3c9b
commit 3c4572bb12
58 changed files with 9377 additions and 455 deletions

View File

@@ -0,0 +1,23 @@
<?php
namespace App\DTOs;
class ClassificationResultDTO
{
public function __construct(
public readonly ?int $articleId,
public readonly float $confidence,
public readonly string $explanation,
public readonly array $rawResponse = []
) {}
public function toArray(): array
{
return [
'article_id' => $this->articleId,
'confidence' => $this->confidence,
'explanation' => $this->explanation,
'raw_response' => $this->rawResponse,
];
}
}