quetzal-studio/request-logger

Request logger for laravel

v0.0.10 2024-04-22 11:47 UTC

This package is auto-updated.

Last update: 2024-10-22 12:52:58 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,
];