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:
parent
01a3a5fbab
commit
eae2bd607c
5 changed files with 26 additions and 26 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue