Build Laravel 13 ticket assistant with Docker, Livewire admin, and helpdesk scraper command
This commit is contained in:
21
app/Models/Article.php
Normal file
21
app/Models/Article.php
Normal file
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use App\Casts\VectorCast;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\Relations\HasMany;
|
||||
|
||||
class Article extends Model
|
||||
{
|
||||
protected $fillable = ['title', 'content', 'embedding'];
|
||||
|
||||
protected $casts = [
|
||||
'embedding' => VectorCast::class,
|
||||
];
|
||||
|
||||
public function decisions(): HasMany
|
||||
{
|
||||
return $this->hasMany(AIDecision::class);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user