store/cache generated responses as a static file
Add the service provider to the config/app.php
provider array
vnclone\LaravelStaticHtmlCache\Provider\LaravelStaticHtmlCacheProvider::class,
Then add the middleware to the end of your Http/Kernel.php
middleware array.
protected $middleware = [
\vnclone\LaravelStaticHtmlCache\Http\Middleware\LaravelStaticHtmlCacheMiddleware::class,
];
To clear all the files manually you can use an artisan task.
php artisan static-html-cache:clear