https://github.com/benjaminmedia/context-laravel
Laravel package to implement Context Service Provider
https://github.com/benjaminmedia/context-laravel
Last synced: 11 months ago
JSON representation
Laravel package to implement Context Service Provider
- Host: GitHub
- URL: https://github.com/benjaminmedia/context-laravel
- Owner: BenjaminMedia
- Created: 2017-08-21T13:22:14.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2022-04-06T08:59:10.000Z (about 4 years ago)
- Last Synced: 2025-06-01T12:09:25.831Z (about 1 year ago)
- Language: PHP
- Size: 33.2 KB
- Stars: 0
- Watchers: 10
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
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,
];
```