'integer', 'profit_sell' => 'integer', 'show_product' => 'boolean', 'is_active' => 'boolean', ]; public function customers(): BelongsToMany { return $this->belongsToMany( Customer::class, 'customer_special_price_package_customer', 'package_id', 'customer_id' )->withPivot([]); } public function products(): BelongsToMany { return $this->belongsToMany( Product::class, 'customer_special_price_package_product', 'package_id', 'product_id' )->withPivot([]); } public function scopeActive($query) { return $query->where('is_active', true); } }