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

docs: add PHPDoc for tenants() method in ResourceSyncing trait

This commit is contained in:
Punyapal Shah 2025-12-28 18:12:32 +05:30
parent 1b3a20212e
commit a702833ac5

View file

@ -105,6 +105,9 @@ trait ResourceSyncing
return true;
}
/**
* @return BelongsToMany<TenantWithDatabase, $this>
*/
public function tenants(): BelongsToMany
{
return $this->morphToMany(config('tenancy.models.tenant'), 'tenant_resources', 'tenant_resources', 'resource_global_id', 'tenant_id', $this->getGlobalIdentifierKeyName())