[13.x] Allow lifecycle and output callbacks on Schedule::group() (#60133)
Adds support for `before`, `after`, `then`, `onSuccess`, `onFailure` (and their `*WithOutput` / `ping*` / `*OutputTo` variants) when chaining before `Schedule::group()`. Previously these methods reached `Schedule::__call`, which had no way to defer Event-only methods, and threw `BadMethodCallException`. `PendingEventAttributes::__call` now also recognizes a fixed list of deferred Event methods (in addition to user-registered Event macros) and records them to be replayed on every event in the group via `mergeAttributes`. Per-event callbacks declared inside the group closure still apply on top, after the group-level ones.
L
Luke Kuzmish committed
44c1f9466543d5f3f05d07950f1545fa55fb9732
Parent: df19aec
Committed by GitHub <noreply@github.com>
on 5/16/2026, 8:47:15 PM