Download the PHP package tooleks/laravel-asset-version without Composer
On this page you can find all versions of the php package tooleks/laravel-asset-version. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download tooleks/laravel-asset-version
More information about tooleks/laravel-asset-version
Files in tooleks/laravel-asset-version
Package laravel-asset-version
Short Description The Laravel Assets Versioning Package
License MIT
Homepage https://github.com/tooleks/laravel-asset-version
Informations about the package laravel-asset-version
The Laravel 5 Assets Versioning Package
This package performs versioning of the asset URL resources.
Asset link before versioning:
Asset link after versioning:
Requirements
PHP >= 7.0, Laravel >= 5.0.
Installation
Package Installation
Execute the following command to get the latest version of the package:
App Configuration
Service Registration
To register the service simply add Tooleks\LaravelAssetVersion\Providers\AssetServiceProvider::class
into your config/app.php
to the end of the providers
array:
If you prefer to use the service via facade interface add 'Asset' => Tooleks\LaravelAssetVersion\Facades\Asset::class
into your config/app.php
to the end of the aliases
array:
Publishing File Resources
Run following command in the terminal to publish the package file resources:
Configure Assets Version
Configure assets version number in the config/assets.php
:
Basic Usage Examples
Via Service Object
Note: Secure option will be detected automatically if no second argument will be passed into the function and secure
option configured to null
in the config/assets.php
:
Via Service Facade Class
Note: Secure option will be detected automatically if no second argument will be passed into the function and secure
option configured to null
in the config/assets.php
: