Add additional context to queueable notification middleware method #44766
Unanswered
AndrewMonty
asked this question in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I want to apply middleware to my queueable notifications, but only for specific channels and/or users. For example; no middleware for database notifications, but apply a rate limiter to email and sms notifications - unless the notifiable is an admin.
My suggestion is to pass
$notifiable
and$channel
to themiddleware()
method on queuable notifications, similar to how withDelay works.Beta Was this translation helpful? Give feedback.
All reactions