PHP code example of mscharl / laravel-static-html-cache

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

    

mscharl / laravel-static-html-cache example snippets


MScharl\LaravelStaticHtmlCache\Provider\LaravelStaticHtmlCacheProvider::class,

protected $middleware = [
    \MScharl\LaravelStaticHtmlCache\Http\Middleware\LaravelStaticHtmlCacheMiddleware::class,
];
bash
php artisan static-html-cache:clear