We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Hi, thanks for this package. It helps me a lot. I'm not speak english.
Env: L5.4, PHP 5.6, caffeinated/themes:^3.0
When developing I can use Theme::asset to get css and js file, but in production I often used .version() when build asset.
Theme::asset
Theme::asset('css/app.css'); // http://localhost/themes/theme-name/assets/css/app.css
My workaround, add a helper function:
if (!function_exists('theme_assets')) { /** * @param string $asset * * @throws \Exception * * @return \Illuminate\Support\HtmlString */ function theme_assets($asset) { return mix(preg_replace('!/{2,}!', '/', sprintf( '/%s/%s/assets/%s', config('themes.paths.base'), Theme::getActive(), $asset ))); } }
It's would be nice to get asset also version asset with Theme::asset.
Any support for this? Thanks.
edit note: add caffeinated/themes version
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi, thanks for this package. It helps me a lot. I'm not speak english.
Env: L5.4, PHP 5.6, caffeinated/themes:^3.0
When developing I can use
Theme::asset
to get css and js file, but in production I often used .version() when build asset.My workaround, add a helper function:
It's would be nice to get asset also version asset with
Theme::asset
.Any support for this? Thanks.
edit note: add caffeinated/themes version
The text was updated successfully, but these errors were encountered: