*/ protected $fillable = [ 'name', 'description', 'priority', 'color', 'superadmins_only' ]; /** * The threads that belong to this category. */ public function threads() { return $this->hasMany(ForumThread::class, 'category_id'); } /** * The threads that belong to this category. */ public function replies() { return $this->hasMany(ForumReply::class, 'category_id'); } }