add topic reply notice

This commit is contained in:
xiaomlove
2022-06-18 13:16:36 +08:00
parent c7b75b8349
commit 88a92f745d
9 changed files with 107 additions and 4 deletions
+19
View File
@@ -0,0 +1,19 @@
<?php
namespace App\Models;
class Topic extends NexusModel
{
protected $fillable = ['userid', 'subject', 'locked', 'forumid', 'firstpost', 'lastpost', 'sticky', 'hlcolor', 'views'];
public function user()
{
return $this->belongsTo(User::class, 'userid');
}
public function forum()
{
return $this->belongsTo(Forum::class. 'forumid');
}
}