From 06d9bedcb1dcffab77b97349b9d05801338c6600 Mon Sep 17 00:00:00 2001 From: Abrar Ahmad Date: Mon, 8 Aug 2022 17:18:38 +0500 Subject: [PATCH] Update synced-resources-between-tenants.blade.md --- .../synced-resources-between-tenants.blade.md | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/source/docs/v3/synced-resources-between-tenants.blade.md b/source/docs/v3/synced-resources-between-tenants.blade.md index 5ae9148..7dc2ec3 100644 --- a/source/docs/v3/synced-resources-between-tenants.blade.md +++ b/source/docs/v3/synced-resources-between-tenants.blade.md @@ -94,6 +94,17 @@ class CentralUser extends Model implements SyncMaster 'email', ]; } + + public function getCreateAttributeNames(): array + { + // attributes should be used when syncing resources from central to tenant DB + return [ + 'global_id', + 'name', + 'password', + 'email', + ]; + } } class User extends Model implements Syncable @@ -126,6 +137,18 @@ class User extends Model implements Syncable 'email', ]; } + + public function getCreateAttributeNames(): array + { + // attributes should be used when syncing resources from tenant to central DB + return [ + 'global_id', + 'name', + 'password', + 'email', + ]; + } + } // Pivot table migration