PHP code example of abordage / laravel-html-min

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

    

abordage / laravel-html-min example snippets


// app/Http/Kernel.php

protected $middleware = [
    'web' => [
        // other middleware
        
        \Abordage\LaravelHtmlMin\Middleware\HtmlMinify::class,
    ],
    
    // ...
];
bash
php artisan vendor:publish --tag="html-min-config"