diff --git a/source/docs/v3/synced-resources-between-tenants.blade.md b/source/docs/v3/synced-resources-between-tenants.blade.md index a160f7f..13929bc 100644 --- a/source/docs/v3/synced-resources-between-tenants.blade.md +++ b/source/docs/v3/synced-resources-between-tenants.blade.md @@ -206,7 +206,7 @@ You can see that in the example above we're using the `TenantPivot` model for th ```php $user = CentralUser::create(...); -$user->attach($tenant); +$user->tenants()->attach($tenant); ``` Attaching a tenant to a user will copy even the unsynced columns (they act as default values), similarly to how creating the user inside the tenant's database will copy the tenant to the central database 1:1.