Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/benjaminmedia/context-laravel

Laravel package to implement Context Service Provider
https://github.com/benjaminmedia/context-laravel

Last synced: 28 days ago
JSON representation

Laravel package to implement Context Service Provider

Awesome Lists containing this project

README

        

# Context Service Provider

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