BenjaminMedia / context-laravel by MFlor

Laravel package to implement Context Service Provider
243
0
11
Package Data
Maintainer Username: MFlor
Maintainer Contact: interactive@bonnier.dk (Bonnier Publications)
Package Create Date: 2017-08-21
Package Last Update: 2022-04-06
Language: PHP
License: Unknown
Last Refreshed: 2024-11-23 03:02:06
Package Statistics
Total Downloads: 243
Monthly Downloads: 2
Daily Downloads: 0
Total Stars: 0
Total Watchers: 11
Total Forks: 0
Total Open Issues: 1

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,
];