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

correct method name

This commit is contained in:
Abrar Ahmad 2022-11-09 15:33:38 +05:00
parent 01a3a5fbab
commit eae2bd607c
5 changed files with 26 additions and 26 deletions

View file

@ -47,7 +47,7 @@ trait ResourceSyncing
return true;
}
public function resources(): MorphToMany
public function tenants(): MorphToMany
{
return $this->morphToMany($this->getResourceTenantModelName(), 'tenant_resources', 'tenant_resources', 'resource_global_id', 'tenant_id', 'global_id')
->using(TenantPivot::class);