mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-06 01:14:03 +00:00
use correct key
This commit is contained in:
parent
dc69a112eb
commit
4bdcf64c20
2 changed files with 6 additions and 5 deletions
|
|
@ -48,7 +48,7 @@ trait ResourceSyncing
|
|||
|
||||
public function tenants(): MorphToMany
|
||||
{
|
||||
return $this->morphToMany(config('tenancy.tenant_model'), 'tenant_resources', 'tenant_resources', 'resource_global_id', 'tenant_id', 'global_id')
|
||||
return $this->morphToMany(config('tenancy.models.tenant'), 'tenant_resources', 'tenant_resources', 'resource_global_id', 'tenant_id', 'global_id')
|
||||
->using(TenantMorphPivot::class);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue