php - Laravel Mail::send how to pass data to mail View -


how can pass data controller customized mail view ?

here's controller's send mail method :

$data = array($user->pidm, $user->password); mail::send('emails.auth.registration', $data , function($message){ $message->to(input::get('email'), 'itsfromme')         ->subject('thisismysucject'); 

here's emails.auth.registration view

<p>you can login our system using login code , password :</p> <p><b>your login code :</b></p> <!-- want put $data value here !--> <p><b>your password :</b></p>   <!--i want put $password value here !--> <p><b>click here login :</b>&nbsp;www.mydomain.com/login</p> 

thanks in advance.

send data this.

$data = [            'data' => $user->pidm,            'password' => $user->password ]; 

you can access directly $data , $password in email blade


Comments

Popular posts from this blog

javascript - Any ideas when Firefox is likely to implement lengthAdjust and textLength? -

matlab - "Contour not rendered for non-finite ZData" -

delphi - Indy UDP Read Contents of Adata -