iankov/asset-v

There is no license information available for the latest version (v1.0.1) of this package.

Automatic asset url version postfix

Installs: 39

Dependents: 1

Suggesters: 0

Security: 0

Stars: 1

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/iankov/asset-v

v1.0.1 2017-12-26 19:37 UTC

This package is not auto-updated.

Last update: 2025-09-24 13:21:55 UTC


README

composer require iankov/asset-v

Publish config file

php artisan vendor:publish --tag=assetv_config

Usage

Run console command to find file modifications and update file version number. Every time file changes it will get a version number incremented by 1

php artisan assetv:update

Use it just as regular asset() function in your laravel application

<script src="{{ asset_v('/js/app.js') }}"></script>

It will make a url with version tail like this

<script src="http://example.com/js/app.js?v2"></script>