dev-master
9999999-devCreate new css and js files to bust long cached files
MIT
The Requires
The Development Requires
by Dan Beeston
laravel cache blade
Wallogit.com
2017 © Pedro Peláez
Create new css and js files to bust long cached files
Add the dependency to your project:, (*1)
composer require DNABeast/cachebuster:dev-master
After updating composer, add the ServiceProvider to the providers array in config/app.php, (*2)
DNABeast\CacheBuster\CacheBusterServiceProvider::class,
In a blade file: @cachebuster('css/style.css'), (*3)
If in a production environment it checks whether the file is older or a different size and if it is creates a new build file. Good for busting long caches set by your server., (*4)
You may need to clear the view cache., (*5)
php artisan view:clear
Create new css and js files to bust long cached files
MIT
laravel cache blade