[11.x] Enhance eventStream to Support Custom Events and Start Messages#54695
Conversation
Changing a public method signature, either by changing its arguments' defaults, or by adding an entirely new parameter, which also changes the arguments order, is a breaking change. Of course, as this so newly released, maybe it can be tolerated. But nonetheless, it is a breaking change. |
Thanks for the feedback, I have updated the description to point this out and you are correct, I didn't count it as a breaking change because it was newly released... |
[11.x] Enhance
eventStreamto Support Custom Events and Start MessagesSummary
eventStreammethod inResponseFactoryby allowing customization of:$as) – Previously hardcoded as"update", now configurable.$startStreamWith) – Optional message sent before streaming begins.$endStreamWith) – Now optional instead of required.Why This Change?
$startStreamWithparameter allows for this.Implementation Details
The method signature now includes:
Docs PR: laravel/docs#10180