PHP code example of mintbridge / laravel-cache-filter

1. Go to this page and download the library: Download mintbridge/laravel-cache-filter 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/ */

    

mintbridge / laravel-cache-filter example snippets



// app/config/app.php

'providers' => [
    '...',
    'MintBridge\LaravelCacheFilter\LaravelCacheFilterServiceProvider'
];

Route::get('some-route', array(
	'before' => 'cache.response.fetch',
	'after' => 'cache.response.store',
	...
));