flynn314 / request-logger
Request logger
1.1.2
2024-07-31 10:46 UTC
Requires
- php: ^7.4|^8.1|^8.2
- laravel/framework: ^8.0|^10.0|^11.0
This package is auto-updated.
Last update: 2024-10-31 00:27:43 UTC
README
- Publish migration
php artisan migrate
- Add necessary records to middlewareAliases in Kernel.
'api.log.request' => LogRequest::class, 'api.log.response' => LogResponse::class,
- Usage something like this:
Route::middleware(['api.log.request'])->group(function () { Route::get('path/to/your/action', [SomeControllerController::class, 'action'])->middleware('api.log.response'); });