Introduction
Storyfeed provides activity feeds for Laravel. You record activities and display them as a live feed or a log. Storyfeed also serializes activities as W3C Activity Streams 2.0 documents.
Activities
An activity records an action and the entities involved. Each entity has a role:
The actor is who did it. The verb is what happened. The object is what it was done to, and the target is what it was aimed at.
Different Headlines for the Same Activity
You may change an activity's headline without changing its recorded verb or roles. Each example below uses the place verb:
Erica Sinclair (actor) sent (headline) Order #1035 (object) to Scoops Ahoy (target)
A new order, Order #1035 (object), came in (headline) to Scoops Ahoy (target) from Erica Sinclair (actor)
Scoops Ahoy (target) received (headline) Order #1035 (object) from Erica Sinclair (actor)
Roles in Other Domains
Robin Buckley (actor) completed (verb) Crack the code (object) on the Scoops Troop board (target)
Work out what the Russian message on the tape is saying.
Steve Harrington (actor) signed (verb) the Scoops Ahoy employment contract (object)
scoops-ahoy-employment-contract.pdf
Erica Sinclair (actor) joined (verb) the Scoops Troop (target)
Recording Activities
Publish an activity where your application places the order:
use Storyfeed\Facades\Storyfeed;
Storyfeed::activity()
->by($customer)
->action('place', $order)
->to($shop)
->publish();use Storyfeed\Facades\Storyfeed;
Storyfeed::record(
verb: 'place',
object: $order,
actor: $customer,
target: $shop,
);Displaying Feeds
The same activities can be displayed in two modes:
Live
Live mode is the default. It groups the same action into one row until a quiet gap closes the burst. See Aggregation for which activities share a row.
Today

- Amount
- $148.80
- Billed to
- Starcourt Mall
- Reference
- INV-1988
- Amount
- $96.00
- Billed to
- Starcourt Mall
- Reference
- INV-1987
- Amount
- $610.40
- Billed to
- Starcourt Mall
- Reference
- INV-1986
Yesterday
Find out where the elevator in the storeroom goes down to.
Saturday
Oct 28, 1984
Log
Log mode displays each activity in a separate row.
Today

- Amount
- $148.80
- Billed to
- Starcourt Mall
- Reference
- INV-1988
- Amount
- $96.00
- Billed to
- Starcourt Mall
- Reference
- INV-1987
- Amount
- $610.40
- Billed to
- Starcourt Mall
- Reference
- INV-1986
Yesterday
Find out where the elevator in the storeroom goes down to.