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

27
app/Models/AIDecision.php Normal file
View File

@@ -0,0 +1,27 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
class AIDecision extends Model
{
protected $table = 'ai_decisions';
protected $fillable = ['ticket_id', 'article_id', 'confidence', 'explanation', 'raw_response'];
protected $casts = [
'raw_response' => 'array',
];
public function ticket(): BelongsTo
{
return $this->belongsTo(Ticket::class);
}
public function article(): BelongsTo
{
return $this->belongsTo(Article::class);
}
}