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.4] Allow a plain text alternative view when using markdown within mailables #19436

Merged
merged 1 commit into from
Jun 1, 2017
Merged

Conversation

jodiedunlop
Copy link
Contributor

Currently a mailable class which builds a message with the markdown() method, cannot specify an alternate text version:

return $this->subject($this->subject)
            ->markdown('emails.enquiry')
            ->text('emails.enquiry_plain');  // Currently Ignored

In some cases, even when using the features of markdown to generate the html, you still need an alternate text version.

This PR allows you to optionally specify a text() view in conjunction with a markdown() view, meaning the code above will work.

@jodiedunlop jodiedunlop changed the title Allow a plain text alternative view when using markdown within mailables [5.4] Allow a plain text alternative view when using markdown within mailables Jun 1, 2017
@taylorotwell taylorotwell merged commit 970c722 into laravel:5.4 Jun 1, 2017
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