1. Go to this page and download the library: Download fahlisaputra/laravel-minify 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/ */
fahlisaputra / laravel-minify example snippets
protected $middleware = [
....
// Middleware to minify CSS
\Fahlisaputra\Minify\Middleware\MinifyCss::class,
// Middleware to minify Javascript
\Fahlisaputra\Minify\Middleware\MinifyJavascript::class,
// Middleware to minify Blade
\Fahlisaputra\Minify\Middleware\MinifyHtml::class,
];