My coding in controller :
$order= Order::find($id);
$data = array(
'name' => $order->customer->name,
'email' => $order->customer->email,
'no_tel' => $order->customer->no_tel,
'date' => Carbon::now('Asia/Kuala_Lumpur'),
);
Mail::send('emails.invoice1', $data, function ($message) {
$message->from('admin@mapdip5b.com', 'Sales');
$message->to($data['email'], $data['name'])->subject('Your Payment Has Been Accepted');
});
the question is , how to pass the $data inside the Mail::send method?
Thank you
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/1YJfir7
via IFTTT
Aucun commentaire:
Enregistrer un commentaire