dimanche 31 mars 2019

variable is not working dynamically with email id

i am trying to send email to different users at a time. email is sending to the users but name is not working dynamically. name of the first user is sending to all users. here is my code:

 foreach ($entertainers as $accept) {

 $entertain = Entertainer::where('mail_soushin',$accept)->first();
 $entertainer= $entertain->name;      

 $this->view('mail.mail101',compact('entertainer','event','user'))->to($accept)->from($admin->mail_soushin,'Dream Master')->subject('【ドリームマスターズ】コンペ募集が開始されました');
 $entertainer = null;

           }

this is blade code to show the name of user

<span></span>

here $entertainers is array of emails and $entertainer is the name of a particular user. but this $entertainer variable is not dynamically updated based on email.



from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2TLSJUz
via IFTTT

Aucun commentaire:

Enregistrer un commentaire