Skip to content

Package for Laravel 5.4 to analyze Request. It will log request time, all db queries, slow query and duplicate queries.

License

Notifications You must be signed in to change notification settings

kk-r/laravel-request-analyzer

Repository files navigation

Laravel request analyzer

Laravel package for analyze request with timing, slow query and duplicate queries. Lot of things in bucket list. Feel free to contribute.

Installation

composer require kk-r/laravel-request-analyzer

Configuration

Add the provider to your config/app.php:

// in your config/app.php add the provider to the service providers key

'providers' => [
    kkr\laravelRequestAnalyze\Providers\RequestAnalyzeServiceProvider::class,
]

// You have add middleware for analyze requests individually ####Add inside app\Http\Kernal.php in Top mention

use kkr\laravelRequestAnalyze\Middleware\RequestAnalyze as RequestAnalyzer;

####For individual route add inside $routeMiddleware and don't forget to add middleware in Route.

protected $routeMiddleware => [
    .....
    'RequestAnalyzer' => RequestAnalyzer::class,
]

####OR for group level routes add inside middleware Groups

protected $middlewareGroups => [
    .....
    RequestAnalyzer::class,
]

####OR for all routes add middleware globally

protected $middleware => [
    .....
    RequestAnalyzer::class,
]

License

This package is open-sourced software licensed under the MIT license

About

Package for Laravel 5.4 to analyze Request. It will log request time, all db queries, slow query and duplicate queries.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages