mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 02:34:03 +00:00
Adapt tenant_asset for path identification
This commit is contained in:
parent
d9b7107900
commit
212653e245
1 changed files with 4 additions and 2 deletions
|
|
@ -36,9 +36,11 @@ if (! function_exists('tenant')) {
|
||||||
|
|
||||||
if (! function_exists('tenant_asset')) {
|
if (! function_exists('tenant_asset')) {
|
||||||
/** @return string */
|
/** @return string */
|
||||||
function tenant_asset($asset)
|
function tenant_asset($asset, $usePathIdentification = false)
|
||||||
{
|
{
|
||||||
return route('stancl.tenancy.asset', ['path' => $asset]);
|
return $usePathIdentification === true ?
|
||||||
|
route('stancl.tenancy.asset.path', ['path' => $asset, 'tenant' => tenant(tenant()->getTenantKeyName())]) :
|
||||||
|
route('stancl.tenancy.asset', ['path' => $asset]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue