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:
commit
5aa8231c81
95 changed files with 702 additions and 702 deletions
|
|
@ -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());
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue