coder-packages / profile-json-response
Profiling JSON responses in Laravel
Installs: 1 743
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 1
Open Issues: 0
pkg:composer/coder-packages/profile-json-response
This package is auto-updated.
Last update: 2025-10-28 21:05:30 UTC
README
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'];