class Product extends Model
{
use HasFactory,SoftDeletes;
protected $table = "products";
protected $primaryKey = "id";
protected $guarded = [];
## Relationships ##
public function productVariant()
{
return $this->belongsToMany(ProductVariantGroup::class, 'pivot_product_variant')->withPivot('value');
}