校园论坛
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
|
||||
namespace Modules\Forum\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class ForumCommentModel extends Model
|
||||
{
|
||||
protected $table = 'forum_comments';
|
||||
|
||||
protected $fillable = [
|
||||
'post_id',
|
||||
'user_id',
|
||||
'parent_id',
|
||||
'reply_to',
|
||||
'content',
|
||||
'like_count',
|
||||
'status',
|
||||
];
|
||||
|
||||
protected $casts = [
|
||||
'post_id' => 'integer',
|
||||
'user_id' => 'integer',
|
||||
'parent_id' => 'integer',
|
||||
'reply_to' => 'integer',
|
||||
'like_count' => 'integer',
|
||||
'status' => 'integer',
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user