1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-02-06 02:24:04 +00:00

Merge branch 'master' into resource-syncing

This commit is contained in:
Abrar Ahmad 2022-08-30 13:05:28 +05:00 committed by GitHub
commit 5aa8231c81
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
95 changed files with 702 additions and 702 deletions

View file

@ -15,7 +15,7 @@ use Stancl\Tenancy\Contracts\SyncMaster;
use Stancl\Tenancy\Database\Concerns\CentralConnection;
use Stancl\Tenancy\Database\Concerns\ResourceSyncing;
use Stancl\Tenancy\Database\Models\TenantPivot;
use Stancl\Tenancy\DatabaseConfig;
use Stancl\Tenancy\Database\DatabaseConfig;
use Stancl\Tenancy\Events\SyncedResourceChangedInForeignDatabase;
use Stancl\Tenancy\Events\SyncedResourceSaved;
use Stancl\Tenancy\Events\TenancyEnded;
@ -756,7 +756,7 @@ class CentralUser extends Model implements SyncMaster
return ResourceUser::class;
}
public function getGlobalIdentifierKey()
public function getGlobalIdentifierKey(): string|int
{
return $this->getAttribute($this->getGlobalIdentifierKeyName());
}
@ -792,7 +792,7 @@ class ResourceUser extends Model implements Syncable
public $timestamps = false;
public function getGlobalIdentifierKey()
public function getGlobalIdentifierKey(): string|int
{
return $this->getAttribute($this->getGlobalIdentifierKeyName());
}