antonmakasin/laravel-http-query-logger is a Laravel package for http query logger for laravel.
It currently has 0 GitHub stars and 61 downloads on Packagist (latest version v1.1.5).
Install it with composer require antonmakasin/laravel-http-query-logger.
Discover more Laravel packages by antonmakasin
or browse all Laravel packages to compare alternatives.
Last updated
This is a small package that can helps in debugging logs. It can log request method, url, duration, request payload, which models are retrieved, controller and method.
composer require antonmakasin/laravel-http-query-logger
Oskingv\HttpQueryLogger\Providers\HttpQueryLoggerServiceProvider::class
php artisan vendor:publish --tag=config --provider="Oskingv\HttpQueryLogger\Providers\HttpQueryLoggerServiceProvider"
The config file is called http-query-logger.php. Currently supported drivers are db and file
By default the logger will use file to log the data. But if you want to use Database for logging, migrate table by using
You can also configure which fields should not be logged like passwords, secrets, etc.
You dont need to migrate if you are just using file driver
php artisan migrate
//in route.php or web.php
Route::middleware('http.query.logger')->post('/test',function(){
return response()->json("test");
});
You can permenently clear the logs by using the following command.
php artisan http_query_logger:clear
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.