more fixes
This commit is contained in:
@@ -15,7 +15,18 @@ class ForumPost extends Model
|
||||
protected $table = 'forum_posts';
|
||||
|
||||
protected $fillable = [
|
||||
'id','thread_id','user_id','content','is_edited','edited_at'
|
||||
'id',
|
||||
'thread_id',
|
||||
'topic_id',
|
||||
'user_id',
|
||||
'content',
|
||||
'is_edited',
|
||||
'edited_at',
|
||||
'spam_score',
|
||||
'quality_score',
|
||||
'flagged',
|
||||
'flagged_reason',
|
||||
'moderation_checked',
|
||||
];
|
||||
|
||||
public $incrementing = true;
|
||||
@@ -23,6 +34,10 @@ class ForumPost extends Model
|
||||
protected $casts = [
|
||||
'is_edited' => 'boolean',
|
||||
'edited_at' => 'datetime',
|
||||
'spam_score' => 'integer',
|
||||
'quality_score' => 'integer',
|
||||
'flagged' => 'boolean',
|
||||
'moderation_checked' => 'boolean',
|
||||
];
|
||||
|
||||
public function thread(): BelongsTo
|
||||
|
||||
Reference in New Issue
Block a user