coder-packages/profile-json-response

Profiling JSON responses in Laravel

Downloads

1739

Stars

0

Version

1.0.2

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

Author

coder-packages