1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2025-12-13 18:44:03 +00:00

Use getTenantKey() instead of ->id references

This commit is contained in:
Samuel Štancl 2020-05-20 20:41:47 +02:00
parent d7536ce0af
commit ac58f6992b
8 changed files with 15 additions and 15 deletions

View file

@ -32,7 +32,7 @@ class Tenant extends Model implements Contracts\Tenant
return 'id';
}
public function getTenantKey(): string
public function getTenantKey(): ?string
{
return $this->getAttribute($this->getTenantKeyName());
}