blixx/versionedasset

BLIXX versioned assets

dev-master 2019-05-14 13:36 UTC

This package is auto-updated.

Last update: 2024-09-15 01:07:18 UTC


README

Automatically adds a version number to your assets' URLs so they won't be cached when changed.

Installation instructions

composer require blixx/versionedasset

Edit your AppServiceProvider class and add the following string: \View::share('versionedAsset', app()->make(\Blixx\VersionedAsset\VersionedAsset)

To use this in your views use: {{ $versionedAsset->asset('filename') }}