LaravelPackages.net
Acme Inc.
Toggle sidebar
ajaaleixo/laravel-middleware-correlation-id

Laravel Package to use a Correlation ID Middleware

5.106
2
v1.0.4
About ajaaleixo/laravel-middleware-correlation-id

ajaaleixo/laravel-middleware-correlation-id is a Laravel package for laravel package to use a correlation id middleware. It currently has 2 GitHub stars and 5.106 downloads on Packagist (latest version v1.0.4). Install it with composer require ajaaleixo/laravel-middleware-correlation-id. Discover more Laravel packages by ajaaleixo or browse all Laravel packages to compare alternatives.

Last updated

Codacy Badge CircleCI Downloads

Laravel Correlation ID Middleware

Supports L5.5+

This package offers you a way of adding a correlation id output on Laravel Logger based on a sent Header. Inspired by this repo it has:

  • all the functionality to set macros on a Request and Push a Monolog Processor
  • adds a configuration file to override settings
  • adds proper tests
  • enables usage for recent Laravel versions (5.5+)

Install

Add Service provider

Open your config/app.php and insert the following in providers key:

Ajaaleixo\Middleware\CorrelationId\CorrelationIdServiceProvider::class,

Run Publish command

php artisan vendor:publish --provider="Ajaaleixo\Middleware\CorrelationId\CorrelationIdServiceProvider"

Edit your settings

Open config/correlationid.php.

Comments