[FEAT] 商品管理模組重構、UI 清晰度優化與多語系標籤字體調整
This commit is contained in:
@@ -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');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user