fedi-feed-router/src/Domain/Articles/ArticlePosted.php

31 lines
564 B
PHP
Raw Normal View History

2025-06-28 02:47:46 +02:00
<?php
namespace Domain\Articles;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
class ArticlePosted extends Model
{
protected $table = 'article_posted';
protected $fillable = [
'article_id',
'community',
'posted_at',
'response',
];
public $timestamps = false;
protected $casts = [
'posted_at' => 'datetime',
'response' => 'array',
];
public function article(): BelongsTo
{
return $this->belongsTo(Article::class);
}
}