Ajouter la fixation à la facture Laravel
$data = array(
'name' => Input::get('name'),
'detail'=>Input::get('detail'),
'sender' => Input::get('sender')
);
$pdf = PDF::loadView('letters.test', $data);
Mail::send('emails.invoice', $data, function($message) use($pdf)
{
$message->from('[email protected]', 'Your Name');
$message->to('[email protected]')->subject('Invoice');
$message->attachData($pdf->output(), "invoice.pdf");
});
Lokesh003