jumptwentyfour / laravel-http-logger
A logger middleware for HTTP requests and responses
Installs: 1 326
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 1
Requires
- php: ^7.2|^8.0
- illuminate/support: ~5.8.0|^6.0|^7.0|^8.0|^9.0
README
Installation
You can install the package via composer:
composer require jumptwentyfour/laravel-http-logger
Optionally you can publish the config file with:
php artisan vendor:publish --provider="JumpTwentyFour\LaravelHttpLogger\ServiceProvider" --tag="config"
Usage
This packages provides a middleware which can be added as a global middleware or as a single route.
// In `app/Http/Kernel.php` protected $middleware = [ // ... \JumpTwentyFour\LaravelHttpLogger\Middleware\HttpLogger::class ];
// In a routes file Route::post(...)->middleware(\JumpTwentyFour\LaravelHttpLogger\Middleware\HttpLogger::class);