Support the ongoing development of Laravel.io →
Blade Mail Queues
Last updated 2 years ago.
0

You may pass in data like for e.g. https://gist.github.com/eriktisme/8743698

and in the mail view https://gist.github.com/eriktisme/8743710

Last updated 2 years ago.
0

That's the problem, you show how to do it with one "first_name" I have multiples, I get them from Eloquent: [code] $data = Task::find($task_id)->taskParticipants->toArray(); [/code] Which (can) contains multiple array with users info (first_name,last_name,email).

Last updated 2 years ago.
0

Solved with loop. I always thought that passing array to mail:queue would work for data passed to views also, but it doesn't.

My solution is to loop through array and add each email address and content for view one by one.

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

RokSiEu roksieu Joined 31 Jan 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.