You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The enrich method returns an array of objects of type ```EnrichedActivity``` which you can also parse yourself. For example, in an API where you are using ```spatie/laravel-fractal``` you could use a loop like the following in your Controller to return json to your api.
372
+
373
+
On your model:
374
+
```php
375
+
use App\Transformers\MyModelEnrichTransformer;
376
+
use GetStream\StreamLaravel\Eloquent\ActivityTrait;
0 commit comments