upload/section add tags

This commit is contained in:
xiaomlove
2025-02-18 02:15:30 +08:00
parent c9b2237efd
commit 7b3e74b47e
4 changed files with 33 additions and 16 deletions
+1
View File
@@ -254,6 +254,7 @@ class SearchBoxRepository extends BaseRepository
if ($searchBox->showsubcat) {
$searchBox->loadSubCategories();
}
$searchBox->loadTags();
}
return $searchBoxList;
}
+1 -1
View File
@@ -149,7 +149,7 @@ class TagRepository extends BaseRepository
return self::$orderByFieldIdString;
}
public function listAll(int $searchBoxId = 0): \Illuminate\Database\Eloquent\Collection|array
public static function listAll(int $searchBoxId = 0): \Illuminate\Database\Eloquent\Collection|array
{
if (empty(self::$allTags)) {
self::$allTags = self::createBasicQuery()->get();