quetzal-studio/request-logger

Request logger for laravel

v0.0.11 2024-11-01 23:34 UTC

This package is auto-updated.

Last update: 2024-12-01 23:55:09 UTC


README

Install package

composer require quetzal-studio/request-logger

Publish config file

php artisan vendor:publish --tag=request-logger-config

Using middleware

Laravel 9 (and older)

protected $routeMiddleware = [
    // ...
    'request.logger' => \QuetzalStudio\RequestLogger\Http\Middleware\RequestLogger::class,
];

Laravel 10

protected $middlewareAliases = [
    // ...
    'request.logger' => \QuetzalStudio\RequestLogger\Http\Middleware\RequestLogger::class,
];