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

[5.6] Add Queueable, SerializesModels to all notification events #24368

Merged
merged 1 commit into from
May 30, 2018
Merged

[5.6] Add Queueable, SerializesModels to all notification events #24368

merged 1 commit into from
May 30, 2018

Conversation

hotmeteor
Copy link
Contributor

@hotmeteor hotmeteor commented May 29, 2018

This PR adds SerializesModels (and Queueable) to all notification events.

Sometimes the $notifiable model in these events have a bunch of extra stuff on it (relationships, etc) added during a flow and all of this data is being unnecessarily added to queued jobs, from the listeners. This can cause issues for queueing systems because the jobs can have huge payloads.

Refs #24350

@taylorotwell taylorotwell merged commit 3b7a244 into laravel:5.6 May 30, 2018
@hotmeteor hotmeteor deleted the issue/24350-notification-event-serialize branch May 30, 2018 13:40
@GrahamCampbell GrahamCampbell changed the title Add Queueable, SerializesModels to all notification events [5.6] Add Queueable, SerializesModels to all notification events May 31, 2018
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