This repository has been archived by the owner on Mar 13, 2024. It is now read-only.
v0.16
v0.16 #27
asset()
The asset() function will generate a URL for an asset.
- You can configure the asset URL by setting the
ASSET_URL
in your .env - Or optionally in the main config file.
asset( "/bootstrap/css/bootstrap-grid.css" ); // https://example.com/assets/dist/bootstrap/css/bootstrap-grid.css
asset( "/images/thing.png" ); // https://example.com/assets/dist/images/thing.png
asset( "/images/thing.png", "/static" ); // https://example.com/static/images/thing.png