Add the dependency to your project:
composer require DNABeast/cachebuster:dev-master
After updating composer, add the ServiceProvider to the providers array in config/app.php
DNABeast\CacheBuster\CacheBusterServiceProvider::class,
In a blade file: @cachebuster('css/style.css')
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.
You may need to clear the view cache.
php artisan view:clear