PHP code example of stounhandj / laravel-cache-route

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

    

stounhandj / laravel-cache-route example snippets


'cache.page' => \StounhandJ\LaravelCacheRoute\Middleware\CacheRoteMiddleware::class,

   Route::get('/', function () {
        //
   })->middleware("cache.page")
   

   Route::get('/', function () {
        //
   })->middleware("cache.page:10")