mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 06:54:05 +00:00
$tenant -> tenant()
This commit is contained in:
parent
c748900551
commit
a213ab0ee3
1 changed files with 2 additions and 2 deletions
|
|
@ -176,9 +176,9 @@ class TenancyUrlGenerator extends UrlGenerator
|
||||||
{
|
{
|
||||||
if (tenant() && static::$passTenantParameterToRoutes) {
|
if (tenant() && static::$passTenantParameterToRoutes) {
|
||||||
if (static::$defaultParameterNames) {
|
if (static::$defaultParameterNames) {
|
||||||
return array_merge($parameters, ['tenant' => $tenant->getTenantKey()]);
|
return array_merge($parameters, ['tenant' => tenant()->getTenantKey()]);
|
||||||
} else {
|
} else {
|
||||||
return array_merge($parameters, [PathTenantResolver::tenantParameterName() => PathTenantResolver::tenantParameterValue($tenant)]);
|
return array_merge($parameters, [PathTenantResolver::tenantParameterName() => PathTenantResolver::tenantParameterValue(tenant())]);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
return $parameters;
|
return $parameters;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue