mirror of
https://github.com/stancl/tenancy-docs.git
synced 2025-12-12 18:24:03 +00:00
Update synced-resources-between-tenants.blade.md
This commit is contained in:
parent
becfe35a68
commit
06d9bedcb1
1 changed files with 23 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue