Update synced-resources-between-tenants.blade.md

This commit is contained in:
Abrar Ahmad 2022-08-08 17:18:38 +05:00
parent becfe35a68
commit 06d9bedcb1

View file

@ -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