Looking to hire Laravel developers? Try LaraJobs

context-laravel maintained by bonnier

Description
Laravel package to implement Context Service Provider
Last update
2020/10/02 14:22 (dev-master)
Links
Downloads
250

Comments
comments powered by Disqus

Context Service Provider

Install & setup

  • Install composer require bonnier/context-laravel
  • Add to config/app.php
'providers' => [
    ...,
    Bonnier\ContextService\ContextServiceProvider::class,
    ...
],
  • Add middleware to app/Http/Kernel.php
protected $middleware = [
    ...,
    \Bonnier\ContextService\Middleware\RegisterContext::class,
];