spekkionu/assetcachebuster
A Laravel package that adds cache-busting version strings to asset URLs, helping browsers load updated CSS and JavaScript after deployments. It integrates with Laravel's asset helper and supports configurable versioning for reliable cache invalidation.
spekkionu/assetcachebuster:^2.0 on any Laravel 5 project, and do not assume v1.x constraints carry over.composer.json constraints against your exact Laravel minor version — "Laravel 5" in the release notes may mean 5.0–5.4 only, and the release notes say nothing about 5.5+ package discovery. On Laravel 8+, the practical answer is still "don't install it; use mix() or Vite."composer require spekkionu/assetcachebuster:^2.0.Spekkionu\AssetCacheBuster\AssetCacheBusterServiceProvider manually in config/app.php, and add the AssetCacheBuster facade alias if the README requires it. Nothing in v2.0.0 indicates auto-discovery was added, so assume manual registration even on 5.5+.php artisan vendor:publish --provider="Spekkionu\AssetCacheBuster\AssetCacheBusterServiceProvider". Look for the manifest path, public path, hash/URL format, and environment switches.config/assetcachebuster.php, and the service provider to see the registered helper/facade and container bindings.asset('css/app.css') and asset('js/app.js') in resources/views/layouts/app.blade.php with the package's URL resolver, after your asset build has produced the hash map/manifest.php artisan tinker or a temporary route before rolling it across layouts.mix()/Vite painful.css/app.css → css/app-abc123.css), and the package resolves logical paths to public URLs.asset() or disabled cache busting locally; required hashed entries in production. This reduces local friction while keeping production strict.asset_url() helper. That gives you a single extension point and makes replacement with Laravel Mix/Vite a one-file change.illuminate/support constraint and run one real install on your target minor before committing. Laravel 5.5+ discovery is a separate mechanism the release notes do not claim.php artisan config:clear; in production run config:cache only after the manifest exists.public/, so leading slashes, Windows separators, and symlinked public directories (Envoyer/Deployer) can break lookups.{{ }} escapes &; only use {!! !!} when the URL is trusted.How can I help you explore Laravel packages today?