Skip to content

Instantly share code, notes, and snippets.

@tiran133
tiran133 / MinifyResponseMiddleware.php
Last active June 2, 2020 04:30
Laravel 5 Middleware for Minify the HTML output.
<?php namespace App\Http\Middleware;
use Closure;
use Illuminate\Contracts\Routing\Middleware;
class MinifyResponseMiddleware implements Middleware{
/**
* Handle an incoming request.
*