Skip to content

Commit 3f29155

Browse files
add lumen installation notes
1 parent b518e69 commit 3f29155

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

README.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,44 @@ return array(
7575
)
7676
```
7777

78+
###Lumen Installation
79+
80+
Begin by installing this package through Composer. Edit your project's composer.json file to require get-stream/stream-laravel.
81+
82+
```
83+
"require": {
84+
"get-stream/stream-laravel": "dev-master"
85+
},
86+
```
87+
88+
Next, update Composer
89+
90+
```
91+
composer update
92+
```
93+
94+
Add ```'GetStream\StreamLaravel\StreamLumenServiceProvider'``` to the list of providers in ```bootstrap/app.php```
95+
96+
```
97+
$app->register(\GetStream\StreamLaravel\StreamLumenServiceProvider::class);
98+
```
99+
100+
Manually create a config folder in ./config/stream-laravel.php and load it inside your bootstrap
101+
102+
```php
103+
return array(
104+
'api_key' => 'API_KEY',
105+
'api_secret' => 'API_SECRET',
106+
'api_app_id' => 'API_APP_ID',
107+
'location' => 'us-east',
108+
'timeout' => 3,
109+
)
110+
```
111+
112+
```
113+
$app->configure('stream-laravel');
114+
```
115+
78116
###Eloquent integration
79117

80118
Stream laravel instant integration with Eloquent models;extending the ```GetStream\StreamLaravel\Eloquent\Activity``` class will give you automatic tracking of your models to user feeds.

0 commit comments

Comments
 (0)