sukohi / asset-ver
A Laravel package that allows you easily to manage a version value for assets URL.
Installs: 15
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/sukohi/asset-ver
Requires
- laravel/framework: ~5.8.13
This package is auto-updated.
Last update: 2025-09-29 02:15:13 UTC
README
A Laravel package that allows you easily to manage a version value for assets URL.
This package is maintained under Laravel 5.8.
Installation
composer require sukohi/asset-ver:1.*
Usage
Update version value
The following command automatically updates asset version.
php artisan asset_ver
Clear
php artisan asset_ver:clear
Helper function
You can get a current version value through asset_ver() as follows.
(in Blase)
https://example.com/js/test.js?{{ asset_ver() }}
(in PHP)
$version = asset_ver(); // ver=***
// or only version value
$version = asset_ver(false);
Configuration
If you'd like to set configurations, publish config/asset_ver.php
through php artisan vendor:publish
.
License
This package is licensed under the MIT License.
Copyright 2019 Sukohi Kuhoh