belongsToMany(Customer::class, 'customer_product') ->withPivot('purchase_date') ->withTimestamps(); } public function contracts(): HasMany { return $this->hasMany(Contract::class); } public function handovers(): HasMany { return $this->hasMany(Handover::class); } public function productServices(): HasMany { return $this->hasMany(ProductService::class); } }