Skip to content

Specify just a body without a view #44

Discussion options

You must be logged in to vote

Nevermind, I figured out how to do this... Just do:

$template = dbquery;

Email::compose()
->mailable(new OrderShipped($template))
->send();

and do the rest in the mailable (app/mail/) like normal,

and mailable view (views/emails) using:
{!! $template !!}

thanks

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by jamesautodude
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant