belongsToMany(Bottle::class)->withPivot('stock'); } public function perfumes(): BelongsToMany { return $this->belongsToMany(Perfume::class)->withPivot('stock'); } public function products(): BelongsToMany { return $this->belongsToMany(Product::class)->withPivot('stock'); } public function purchases(): HasMany { return $this->hasMany(Purchase::class); } public function restocks(): HasMany { return $this->hasMany(Restock::class); } }