校园论坛

This commit is contained in:
liu
2026-05-31 03:47:57 +08:00
parent a1c6ecf2b9
commit 86be1c230e
47 changed files with 1892 additions and 0 deletions
+41
View File
@@ -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',
];
}