Profiling JSON responses in Laravel
coder-packages/profile-json-response is a Laravel package for profiling json responses in laravel.
It currently has 0 GitHub stars and 1.743 downloads on Packagist (latest version 1.0.2).
Install it with composer require coder-packages/profile-json-response.
Discover more Laravel packages by coder-packages
or browse all Laravel packages to compare alternatives.
Last updated
Setup
Set middleware in middle property in App\Http\Kernel
<?php
namespace App\Http;
use Illuminate\Foundation\Http\Kernel as HttpKernel;
class Kernel extends HttpKernel
{
protected $middleware = [
\Larapackages\ProfileJsonResponse\Middleware\ProfileJsonResponse::class
];
}
Set profile param in request for getting debug info in json response
For limitation profiling data output, set $profilingData property keys
protected $profilingData = ['queries'];