PHP code example of themonkeys / cachebuster

1. Go to this page and download the library: Download themonkeys/cachebuster library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

themonkeys / cachebuster example snippets


'providers' => array(
    'Themonkeys\Cachebuster\CachebusterServiceProvider',
)

'aliases' => array(
    'Bust' => 'Themonkeys\Cachebuster\Cachebuster'
)

Route::get('{path}', function($filename) {
  return Bust::css($filename);
})->where('path', '.*\.css$');
App::make('cachebuster.StripSessionCookiesFilter')->addPattern('|\.css$|');

> Route::get('/css/{path}', function($filename) {
>     return Bust::css("/css/$filename");
> })->where('path', '.*\.css$');
> 
sh
php artisan vendor:publish
sh
php artisan config:publish themonkeys/cachebuster