Add all files

This commit is contained in:
root
2025-11-30 11:57:22 +01:00
parent 2ee51cac4f
commit 044271db3d
1476 changed files with 142544 additions and 0 deletions

View File

@@ -0,0 +1,36 @@
<?php
namespace Paymenter\Extensions\Others\KnowledgeBase\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
class Article extends Model
{
protected $table = 'ext_kb_articles';
protected $fillable = [
'title',
'content',
'description',
'published_at',
'is_active',
'slug',
'category_id',
];
protected $casts = [
'published_at' => 'datetime',
'is_active' => 'boolean',
];
public function category(): BelongsTo
{
return $this->belongsTo(Category::class);
}
public function getRouteKeyName()
{
return 'slug';
}
}