Skip to content

Instantly share code, notes, and snippets.

Last active March 4, 2020 08:43
What would you like to do?
Laravel / Lumen json options for response using middleware. Used for returning unescaped utf-8 unicode response.
namespace App\Http\Middleware;
use Closure;
class UnescapedJsonMiddleware
public function handle($request, Closure $next)
$data = $next($request);
return $data;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment