Skip to content

Commit e1878b4

Browse files
committed
add section about verb customization
1 parent 4670bbc commit e1878b4

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,20 @@ class Pin extends Eloquent {
138138
}
139139
```
140140

141+
####Customize activity verb
142+
143+
By default, the verb field is the class name of the activity, you can change that implementing the `activityVerb` method.
144+
145+
```php
146+
class Pin extends Eloquent {
147+
use GetStream\StreamLaravel\Eloquent\ActivityTrait;
148+
149+
public function activityVerb()
150+
{
151+
return 'pin';
152+
}
153+
154+
```
141155

142156
###Feed manager
143157

0 commit comments

Comments
 (0)