Skip to content

Latest commit

 

History

History
33 lines (26 loc) · 929 Bytes

README.md

File metadata and controls

33 lines (26 loc) · 929 Bytes

Build Status

Installation

Via composer package management:

$ composer require ssipos90/correlate

Usage

Not tested on Laravel, only Lumen.

Either

  • register the service provider:
    • Laravel: register the provider in your config/app.php file:
     Ssipos\Correlate\CorrelateServiceProvider::class,
    • Lumen: add this in your bootstrap/app.php file:
    $app->register(Ssipos\Correlate\CorrelateServiceProvider::class);
  • add the middleware to whatever routes you want or globally:
    • Laravel: add the middleware in your app/Http/Kernel.php file;
    • Lumen: add the middleware in your bootstrap/app.php file.
    Ssipos\Correlate\Correlate::class

TODO

  • Add guzzle support for adding the header on forwarding requests