exolnet / laravel-bust
Provide cache busting helpers to Laravel.
v1.8.0
2024-03-28 14:22 UTC
Requires
- php: ^8.1
- laravel/framework: ^10.0|^11.0
Requires (Dev)
- mockery/mockery: ^1.4
- orchestra/testbench: ^8.0|^9.0
- phpunit/phpunit: ^10.5
- squizlabs/php_codesniffer: ^3.6
This package is auto-updated.
Last update: 2024-03-28 14:47:53 UTC
README
Provide cache busting helpers to Laravel.
Installation
Require this package with composer:
composer require exolnet/laravel-bust
If you don't use package auto-discovery, add the service provider to the providers
array in config/app.php
:
Exolnet\Bust\BustServiceProvider::class
And the facade to the facades
array in config/app.php
:
'Bust' => Exolnet\Bust\BustFacade::class
Usage
You can retrieve an asset's URL containing its version this way:
Bust::asset('example.css'); // Should return example.231.css
Testing
To run the phpUnit tests, please use:
composer test
Contributing
Please see CONTRIBUTING and CODE OF CONDUCT for details.
Security
If you discover any security related issues, please email security@exolnet.com instead of using the issue tracker.
Credits
License
This code is licensed under the MIT license. Please see the license file for more information.