PHP code example of 0x1881 / laravel-html-minify

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

    

0x1881 / laravel-html-minify example snippets


return [
    'enable' => env('LARAVEL_HTML_MINIFY', true),

    'skip_route' => [
        'dashboard',
        'dashboard.*',
    ],

    'skip_path' => [
        'admin',
        'admin/*',
    ],
];

\C4N\LaravelHtmlMinify\Middlewares\LaravelHtmlMinify::class
bash
php artisan vendor:publish --tag=LaravelHtmlMinify