belongsToMany(Product::class, 'product_vendor') ->withPivot('last_price') ->withTimestamps(); } public function purchaseOrders(): HasMany { return $this->hasMany(PurchaseOrder::class); } }