Introduction
Storyfeed provides activity feeds for Laravel. You explicitly record activities and display them as a live feed, a summary, 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.
Erica Sinclair (actor) placed (verb) Order #1035 (object) with Scoops Ahoy (target)
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)
Examples From Other Apps
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 · 47 KB · application/pdf
Erica Sinclair (actor) joined (verb) the Scoops Troop (target)
Recording Activities
After installing Storyfeed and completing the Quickstart, 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
You may display the same activities in three modes. See Retrieving Feeds to select a mode.
Live
Live mode is the default. It groups repeated actions and activities from several actors with the same target into single rows.
Today
Yesterday
Find out where the elevator in the storeroom goes down to.
Saturday
Oct 28, 1984
Summary
Summary mode groups activities by actor and day, with one phrase per verb. Actors with the same single activity may share a row.
Today
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.