Laravel Community Tools by Tighten
Laravel Nova icon Nova Packages
A

Assets Versioning

Readme

Nova Assets Versioning

Many know the problem that after a package update you have to explain to the user that the browser cache has to be cleared.

This package appends the hash of script and style files loaded via Nova::script() or Nova::style().

Installation

composer require norman-huth/nova-assets-versioning

Example

Without this package:

<!-- Tool Styles -->
<link rel="stylesheet" href="/nova-api/styles/norman-huth-menu">

<!-- Tool Scripts -->
<script src="/nova-api/scripts/norman-huth-menu"></script>

With this package:

<!-- Tool Styles -->
<link rel="stylesheet" href="/nova-api/styles/norman-huth-menu?id=617a67680cd5dd5759b1963661ce40f1">

<!-- Tool Scripts -->
<script src="/nova-api/scripts/norman-huth-menu?id=cf9c832eb5de9f26626d5243e87f8814"></script>

More Laravel Nova Packages

Stand With Ukraine

Woman. Life. Freedom.

Back to Top
Added 2 years ago
Last updated 1 Year Ago
Version v1.1.0
Nova Version ^4.0|^5.0
Composer
norman-huth/nova-assets-versioning
GitHub stars 4
Packagist downloads 55,933

Favorites

1 user favorited

Rating

5.00
(out of 5)
★★★★★
★★★★
★★★
★★
2 ratings

Brought to you by Tighten

Issues/Feature Requests Stats Package Ideas