校园论坛
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
<?php
|
||||
|
||||
namespace Modules\Forum\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\SoftDeletes;
|
||||
|
||||
class ForumPostModel extends Model
|
||||
{
|
||||
use SoftDeletes;
|
||||
|
||||
protected $table = 'forum_posts';
|
||||
|
||||
protected $fillable = [
|
||||
'user_id',
|
||||
'category_id',
|
||||
'title',
|
||||
'content',
|
||||
'images',
|
||||
'view_count',
|
||||
'comment_count',
|
||||
'like_count',
|
||||
'favorite_count',
|
||||
'is_hot',
|
||||
'is_top',
|
||||
'status',
|
||||
];
|
||||
|
||||
protected $casts = [
|
||||
'user_id' => 'integer',
|
||||
'category_id' => 'integer',
|
||||
'images' => 'array',
|
||||
'view_count' => 'integer',
|
||||
'comment_count' => 'integer',
|
||||
'like_count' => 'integer',
|
||||
'favorite_count' => 'integer',
|
||||
'is_hot' => 'integer',
|
||||
'is_top' => 'integer',
|
||||
'status' => 'integer',
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user