diff --git a/docs/core/reference/products.md b/docs/core/reference/products.md index 995de86372..667fff4fe2 100644 --- a/docs/core/reference/products.md +++ b/docs/core/reference/products.md @@ -82,7 +82,7 @@ You can associate attributes to a product type like so (it's just a straight forward [Polymorphic relationship](https://laravel.com/docs/8.x/eloquent-relationships#many-to-many-polymorphic-relations)). ```php -$productType->mappedAttributes()->associate([ /* attribute ids ... */ ]); +$productType->mappedAttributes()->attach([ /* attribute ids ... */ ]); ``` You can associate both `Product` and `ProductVariant` attributes to a product type which will then display on either the diff --git a/docs/core/reference/taxation.md b/docs/core/reference/taxation.md index fa84669548..e93596149c 100644 --- a/docs/core/reference/taxation.md +++ b/docs/core/reference/taxation.md @@ -34,16 +34,16 @@ These specify a geographic zone for tax rates to be applied. Tax Zones can be ba Lunar\Models\TaxZone ``` -|Field|Description| -|:-|:-| -|id|| -|name|e.g. `UK`| -|zone_type|`country`, `state`, or `postcode`| -|price_display|`tax_inclusive` or `tax_exclusive`| -|active|true/false| -|default|true/false| -|created_at|| -|updated_at|| +|Field| Description | +|:-|:------------------------------------| +|id| | +|name| e.g. `UK` | +|zone_type| `country`, `states`, or `postcodes` | +|price_display| `tax_inclusive` or `tax_exclusive` | +|active| true/false | +|default| true/false | +|created_at| | +|updated_at| | ```php $taxZone = TaxZone::create([