Closed xtrasmal closed 11 years ago
Yep, that looks fine, although I would recommend you use the use
keyword on the function (so that you don't have to run the exact same query):
Great stuff, I was already working with Getters and Setters to get this working! This is better.
The documentation says that I should work with email templates. THis sounds very good, but how would I use
$message->body('view: emails.hello');
in the setup above? Right now I send out an email with a link that verifies the emailaddress. Can I send the message variables to the view?
Check out the readme. You can add data to the view like so:
$message->body('view: emails.hello');
$message->body->name = 'value';
Thanks. I have read the readme, but you know how it goes. Somedays you are reading 1000 manuals and you start reading 10 words at a time and you miss something. Very nice. Now I will add some intelligence.
Do you have any type of workflow that you use, that I could adapt straight from the start? Do you have something like an intelligent way you work with the email layouts?
No problem. I'll close this one out as well then.
Unfortunately, I don't have any suggestions for your workflow. I've never had to design a complicated email layout, so I'm not of much help.
Here is a better view: http://paste.laravel.com/jlU