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

Add mail middleware #38193

Closed

Conversation

jameslkingsley
Copy link
Contributor

This PR adds the ability to define middleware on mailables the same way you can do on queued jobs. The benefits of having mail middleware is it allows you to move some of that decision making to a single place, and keeps consistency with other parts of Laravel.

This might need to target the next major version as it changes the Mailable interface.

This is still a work in progress PR (still need to tweak queued mails), but I am just wondering whether this has a place in the framework?

@gdebrauwer
Copy link
Contributor

Middleware is already supported on queued mailables, see #37568

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