Skip to content

Instantly share code, notes, and snippets.

View rgomezcasas's full-sized avatar
☀️
deletin' code

Rafa Gómez rgomezcasas

☀️
deletin' code
View GitHub Profile
@rgomezcasas
rgomezcasas / filters.php
Last active December 24, 2015 10:49 — forked from garagesocial/filters.php
Minificar salida del HTML en Laravel 4
<?php
App::after(function($request, $response)
{
// Elimina esta condición si quieres probarlo en local
if (App::Environment() == 'production')
{
if ($response instanceof Illuminate\Http\Response)
{
$output = $response->getOriginalContent();