1
0
Fork 0
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:
Abrar Ahmad 2022-12-06 12:02:25 +05:00
parent dc69a112eb
commit 4bdcf64c20
2 changed files with 6 additions and 5 deletions

View file

@ -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);
}
}