mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-04 19:24:02 +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')) {
|
||||
/** @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