Skip to content

Commit b1be897

Browse files
Merge pull request #64 from linkthrow/feature/lumen-support
Feature/lumen support
2 parents 82a400b + a8a8a57 commit b1be897

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

README.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,40 @@ return [
158158

159159
And that should get you off and running with Stream-Laravel. Have lots of fun!
160160

161+
### Lumen Installation
162+
163+
Begin by installing this package through Composer.
164+
165+
```
166+
composer require get-stream/stream-laravel
167+
```
168+
169+
Add `'GetStream\StreamLaravel\StreamLumenServiceProvider'` to the list of providers in `bootstrap/app.php`
170+
171+
```php
172+
$app->register(\GetStream\StreamLaravel\StreamLumenServiceProvider::class);
173+
```
174+
175+
Manually create a config file in ./config/stream-laravel.php...
176+
177+
```php
178+
<?php
179+
180+
return [
181+
'api_key' => 'API_KEY',
182+
'api_secret' => 'API_SECRET',
183+
'api_app_id' => 'API_APP_ID',
184+
'location' => 'us-east',
185+
'timeout' => 3,
186+
];
187+
```
188+
189+
and tell Lumen to configure it, in bootstrap.
190+
191+
```php
192+
$app->configure('stream-laravel');
193+
```
194+
161195
# Features of Stream-Laravel
162196

163197
## Eloquent Integration

0 commit comments

Comments
 (0)