Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[8.x] Allow sync broadcast via method #38557

Merged
merged 2 commits into from
Aug 26, 2021
Merged

Conversation

taylorotwell
Copy link
Member

Alternative to #38547


Currently, model broadcasting fails on models that are deleted. The queued broadcast job will fail because the model no longer exists.

This tweaks the behavior to broadcast the model's primary key in the event's model property on a model deletion that is not a soft deleted model.

Assuming this isn't a breaking change as the behavior is pretty broken at the moment.

@GrahamCampbell GrahamCampbell changed the title Allow sync broadcast via method [8.x] Allow sync broadcast via method Aug 26, 2021
@taylorotwell taylorotwell merged commit 8940ff3 into 8.x Aug 26, 2021
@taylorotwell taylorotwell deleted the broadcast-deletes-sync branch August 26, 2021 14:48
victorvilella pushed a commit to cdsistemas/framework that referenced this pull request Oct 12, 2021
* allow sync broadcast via method

* add hook to disable broadcasting via callback
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants