初始化

This commit is contained in:
2026-08-08 18:27:38 +08:00
parent efc150c937
commit 060eb79c09
336 changed files with 24613 additions and 15 deletions
+25
View File
@@ -0,0 +1,25 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\HasMany;
class ForumBoard extends Model
{
protected $fillable = [
'name',
'slug',
'description',
'sort',
];
protected $casts = [
'sort' => 'integer',
];
public function threads(): HasMany
{
return $this->hasMany(ForumThread::class, 'board_id');
}
}