change category form schema

This commit is contained in:
xiaomlove
2025-09-15 13:38:38 +07:00
parent 373b0d4af1
commit 82cccd29c2
8 changed files with 114 additions and 15 deletions

View File

@@ -225,11 +225,21 @@ class SearchBox extends NexusModel
return Setting::get('main.browsecat');
}
public static function getBrowseSearchBox()
{
return self::query()->find(self::getBrowseMode());
}
public static function getSpecialMode()
{
return Setting::get('main.specialcat');
}
public static function getSpecialSearchBox()
{
return self::query()->find(self::getSpecialMode());
}
public function isSectionBrowse(): bool
{
return $this->id == self::getBrowseMode();