mirror of
https://github.com/Bigherollc/wticreatorstudio.git
synced 2026-07-31 05:16:49 -04:00
17 lines
489 B
PHP
17 lines
489 B
PHP
<?php
|
|
|
|
if (!function_exists('asset_url')) {
|
|
function asset_url($asset) {
|
|
$version = '?v=' . filemtime(public_path($asset)) . md5_file(public_path($asset));
|
|
|
|
return asset($asset.$version);
|
|
}
|
|
}
|
|
|
|
if (!function_exists('module_asset_url')) {
|
|
function module_asset_url($module, $asset) {
|
|
$version = '?v=' . filemtime(module_path($module, $asset)) . md5_file(module_path($module, $asset));
|
|
|
|
return asset("Modules/{$module}/{$asset}{$version}");
|
|
}
|
|
} |