Trying to send array of id's in an email

Posted 1 year ago by jbowman99

i have an array of id's that i need to send out daily in an email.

$vdids = Job::yesterday()->pluck('vdid')->toArray();

not sure how to do this in

Mail::send('emails.imported', $vdids, function($message)
        {
            $message->to('[email protected]', 'Job App')->subject('imported jobs');
        });

when trying to access this array in the email template it throws an error. how do i send this array to the template and foreach over the values in order to send the list to an email address?

Please sign in or create an account to participate in this conversation.