1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2025-12-15 11:04:04 +00:00

resolve minor todos

This commit is contained in:
Samuel Štancl 2025-08-18 15:04:42 +02:00
parent 413da36c4a
commit 7089efb2ee
7 changed files with 44 additions and 9 deletions

View file

@ -36,7 +36,12 @@ if (! function_exists('tenant')) {
}
if (! function_exists('tenant_asset')) {
// todo@docblock
/**
* Generate a URL to an asset in tenant storage.
*
* If app.asset_url is set, this helper suffixes that URL before appending the asset path.
* If it is not set, the stancl.tenancy.asset route is used.
*/
function tenant_asset(string|null $asset): string
{
if ($assetUrl = config('app.asset_url')) {