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.8] Use Mailable contract instead of class #26790

Merged
merged 2 commits into from
Dec 11, 2018
Merged

[5.8] Use Mailable contract instead of class #26790

merged 2 commits into from
Dec 11, 2018

Conversation

nmokkenstorm
Copy link
Contributor

@nmokkenstorm nmokkenstorm commented Dec 8, 2018

Hey,

This shouldn't break any existing code, but at my current employer I wanted to add a custom mail driver, and integrate that with the framework as much as possible, but was unable to do so because PendingMail depends on a concrete instance of Mailable, instead of the contract.

This PR solves my issue, and maybe make it easier to add custom mail drivers for everyone in the future.

@nmokkenstorm nmokkenstorm changed the title Use Mailable contract instead of class wip: Use Mailable contract instead of class Dec 8, 2018
@nmokkenstorm nmokkenstorm changed the title wip: Use Mailable contract instead of class Use Mailable contract instead of class Dec 8, 2018
@TBlindaruk TBlindaruk changed the title Use Mailable contract instead of class [5.8] Use Mailable contract instead of class Dec 8, 2018
@GrahamCampbell
Copy link
Member

Looks good to me, superficially at least. 👍

@nmokkenstorm
Copy link
Contributor Author

It's a very superficial change to be honest. I'm definitely willing into digging into the framework code at a later point to make registering custom mail drivers easier, if that kind of thing would be welcomed

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.

4 participants