PHP code example of rzl-app / laravel-blade-minify

1. Go to this page and download the library: Download rzl-app/laravel-blade-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/ */

    

rzl-app / laravel-blade-minify example snippets


php artisan vendor:publish --tag=RzlLaravelBladeMinify

\RzlApp\BladeMinify\Middleware\RzlBladeMinify::class

RZL_MINIFY_ENABLE=true

RZL_MINIFY_ENABLE=false

RZL_MINIFY_ONLY_PROD=true

RZL_MINIFY_ONLY_PROD=false

'ignore_route_name' => [
  // 'dashboard',
  // 'home',
]

RzlBladeMinifyFacade::bladeMinify("<div>...</div>");

RzlBladeMinifyFacade::excludeBladeMinify("<div>...</div>");

@ignoreMinify
    <div> this script will ignored from minify   </div>
@endIgnoreMinify