PHP code example of spekkionu / assetcachebuster

1. Go to this page and download the library: Download spekkionu/assetcachebuster 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/ */

    

spekkionu / assetcachebuster example snippets


'providers' => array(
    Spekkionu\Assetcachebuster\AssetcachebusterServiceProvider::class,
)

'aliases' => array(
    'Asset' => Spekkionu\Assetcachebuster\Facades\Cachebuster::class
)

php artisan vendor:publish --provider="Spekkionu\Assetcachebuster\AssetcachebusterServiceProvider" --tag=config
html
<link rel="stylesheet" href=" echo Asset::url('/css/stylesheet.css');

php artisan assetcachebuster:generate