$pdf = PDF::loadView('SchoolAccount.invoice_receipt', $data) set_time_limit(300);
Mail::send('SchoolAccount.invoice_receipt', $data, function($message)use($data,$pdf,$family) {
$message->to($family->father_email)
->subject('Invoice Receipt')
->from('mail@mail.com','Invoices')
->attachData($pdf->output(), "invoice.pdf");
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire