[FEAT] 商品管理模組重構、UI 清晰度優化與多語系標籤字體調整

This commit is contained in:
2026-03-26 17:32:15 +08:00
parent ac51027dda
commit 8ec5473ec7
12 changed files with 1152 additions and 9 deletions

View File

@@ -21,4 +21,13 @@ class ProductCategory extends Model
{
return $this->hasMany(Product::class, 'category_id');
}
/**
* Get the translations for the category name.
*/
public function translations()
{
return $this->hasMany(\App\Models\System\Translation::class, 'key', 'name_dictionary_key')
->where('group', 'category');
}
}