From 40160b2affbf360727b71695478683e0c3d0d77e Mon Sep 17 00:00:00 2001 From: lukinovec Date: Fri, 6 May 2022 15:16:56 +0200 Subject: [PATCH] Improve tenants doc --- source/docs/v3/tenants.blade.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/source/docs/v3/tenants.blade.md b/source/docs/v3/tenants.blade.md index 2b9bc46..2cb3d86 100644 --- a/source/docs/v3/tenants.blade.md +++ b/source/docs/v3/tenants.blade.md @@ -59,18 +59,18 @@ After the tenant is created, an event will be fired. This will result in things ## Custom columns {#custom-columns} -Attributes of the tenant model which don't have their own column will be stored in the `data` JSON column. You can set a custom attribute as you normally would set a models atribute: +Attributes of the tenant model which don't have their column will be stored in the `data` JSON column. You can set these attributes as you'd normally set model attributes: ```php $tenant->update([ - 'customAttribute' => 'value', // to be store in the `data` JSON column - 'plan' => 'free' // to be stored in the plan column (see below) + 'attributeThatHasNoColumn' => 'value', // stored in the `data` JSON column + 'plan' => 'free' // stored in the `plan` column (see below) ]); ``` -or simply +or ```php -$tenant->customAttribute = 'value'; // to be store in the `data` JSON column -$tenant->plan = 'free'; // to be stored in the plan column (see below) +$tenant->customAttribute = 'value'; // stored in the `data` JSON column +$tenant->plan = 'free'; // stored in the `plan` column (see below) $tenant->save(); ```