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
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).
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.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community