mardi 24 juillet 2018

how to collect only emails from related table

i want to send emails to client multiple email id i am collective email data like this

$emails = EmailClient::whereHas('client', function ($query) use($client){
                $query->where('id', $client->id);
            })->get();

Email Data

now i want to add collected email in array

$mail = Mail::to([$emails->email])->send(new SendInvoice($client));

Getting Error help me for sort out



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire