Skip to content

Conversation

stevebauman
Copy link
Contributor

@stevebauman stevebauman commented Oct 8, 2025

It's currently undocumented that queued notifications inherit some job related properties to their underlying queued job:

tries, timeout, maxExceptions, ShouldBeEncrypted, etc.

https://github.com/laravel/framework/blob/080f5b4968d64d1ba7a209b7dafcd0c242e78a8e/src/Illuminate/Notifications/SendQueuedNotifications.php#L75-L91

This PR adds documentation to inform developers that these properties can be set on their queued notification classes to modify the underlying behaviour of the queued job.

Add documentation explaining that queued notifications inherit job-related properties (tries, timeout, maxExceptions, shouldBeEncrypted, backoff, retryUntil) from the notification class to the underlying queued job. This behavior is implemented in SendQueuedNotifications but was not previously documented.
The shouldBeEncrypted behavior is applied by implementing the ShouldBeEncrypted interface on the notification class, not by setting a property directly.
@taylorotwell taylorotwell merged commit f464107 into laravel:12.x Oct 8, 2025
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