Использование пакета dompdf laravel
public function build(){
$pdf = PDF::loadView('senderMail.mail');
$data = $pdf->output();
return $this->view('senderMail.mail')
->to('example@admin.com')
->attachData($data, "Receipt.pdf",
['mime' =>'application/pdf',]);
}