LaravelPackages.net
Acme Inc.
Toggle sidebar
coder-packages/profile-json-response

Profiling JSON responses in Laravel

1.743
0
1.0.2
About coder-packages/profile-json-response

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

Profiling JSON responses in Laravel

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'];

Star History Chart