'decimal:2', 'member_price' => 'decimal:2', 'cost' => 'decimal:2', 'track_limit' => 'integer', 'spring_limit' => 'integer', 'is_active' => 'boolean', 'metadata' => 'array', ]; public function category() { return $this->belongsTo(ProductCategory::class, 'category_id'); } /** * Get the translations for the product name. */ public function translations() { return $this->hasMany(\App\Models\System\Translation::class, 'key', 'name_dictionary_key') ->where('group', 'product'); } }