Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/benjaminmedia/context-laravel
- Owner: BenjaminMedia
- Created: 2017-08-21T13:22:14.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2022-04-06T08:59:10.000Z (almost 3 years ago)
- Last Synced: 2024-11-16T04:43:56.853Z (about 2 months ago)
- Language: PHP
- Size: 33.2 KB
- Stars: 0
- Watchers: 11
- 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,
];
```