mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-04 11:44:03 +00:00
docs: add PHPDoc for tenants() method in ResourceSyncing trait
This commit is contained in:
parent
1b3a20212e
commit
a702833ac5
1 changed files with 3 additions and 0 deletions
|
|
@ -105,6 +105,9 @@ trait ResourceSyncing
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return BelongsToMany<TenantWithDatabase, $this>
|
||||||
|
*/
|
||||||
public function tenants(): BelongsToMany
|
public function tenants(): BelongsToMany
|
||||||
{
|
{
|
||||||
return $this->morphToMany(config('tenancy.models.tenant'), 'tenant_resources', 'tenant_resources', 'resource_global_id', 'tenant_id', $this->getGlobalIdentifierKeyName())
|
return $this->morphToMany(config('tenancy.models.tenant'), 'tenant_resources', 'tenant_resources', 'resource_global_id', 'tenant_id', $this->getGlobalIdentifierKeyName())
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue