php/src/Core/Activity/Scopes/CLAUDE.md
Snider 98102e510d feat: CLAUDE.md for every directory in CorePHP — 155 files total
Every directory containing PHP or Blade files now has agent-readable
documentation. 134 new files, 2,103 lines across:

- 78 blade component dirs (accordion through web)
- 18 admin view components
- 20 Core subsystem internals (models, services, concerns, migrations)
- 10 Bouncer/Gate subsystem dirs
- 5 root namespaces (Core, Mod, Mod/Trees, Plug, Website)
- Tests, config, lang, media, seo, cdn, search, storage, webhook dirs

Any agent landing on any CorePHP directory now understands the code
before reading a single PHP file. The CLAUDE.md IS the index.

Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-29 13:41:35 +01:00

643 B

Activity/Scopes/ — Activity Query Scopes

Traits

Trait Purpose
ActivityScopes Comprehensive query scopes for activity log filtering. Includes: forWorkspace, forSubject, forSubjectType, byCauser, byCauserId, ofType, createdEvents, updatedEvents, deletedEvents, betweenDates, today, lastDays, lastHours, search, inLog, withChanges, withExistingSubject, withDeletedSubject, newest, oldest.

Used by Core\Activity\Models\Activity. Workspace scoping checks both properties->workspace_id and subject model's workspace_id. Requires spatie/laravel-activitylog.