mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-13 04:04:04 +00:00
Fix #998, properly replace ALL tenant_id literals
This commit is contained in:
parent
8a00a105d0
commit
2a39b0526a
11 changed files with 35 additions and 22 deletions
|
|
@ -105,6 +105,12 @@ class Tenancy
|
|||
return $model;
|
||||
}
|
||||
|
||||
/** Name of the column used to relate models to tenants. */
|
||||
public static function tenantKeyColumn(): string
|
||||
{
|
||||
return config('tenancy.models.tenant_key_column') ?? 'tenant_id';
|
||||
}
|
||||
|
||||
/**
|
||||
* Try to find a tenant using an ID.
|
||||
*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue